mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Update cli menu view
This commit is contained in:
parent
7c3069983b
commit
9ca9d28633
3 changed files with 43 additions and 29 deletions
|
@ -1,3 +1,7 @@
|
|||
4.1.1 - 21/06/2022
|
||||
Updated:
|
||||
- Cli menu view with colors
|
||||
|
||||
4.1.0 - 20/06/2022
|
||||
Updated:
|
||||
- slpkg code re-written from the beginning and currently supports only the SBo repository
|
||||
|
|
32
README.rst
32
README.rst
|
@ -41,25 +41,27 @@ Usage
|
|||
|
||||
$ slpkg --help
|
||||
|
||||
Usage: slpkg [OPTIONS] <packages>
|
||||
USAGE: slpkg [OPTIONS] <packages>
|
||||
|
||||
Packaging tool that interacts with the SBo repository.
|
||||
Packaging tool that interacts with the SBo repository.
|
||||
|
||||
Options:
|
||||
update Update the package lists.
|
||||
build Build only the packages.
|
||||
install Build and install the packages.
|
||||
remove Remove installed packages.
|
||||
search Search packages by name.
|
||||
clean-logs Purge logs of dependencies.
|
||||
OPTIONS:
|
||||
update Update the package lists.
|
||||
build <packages> Build only the packages.
|
||||
install <packages> Build and install the packages.
|
||||
remove <packages> Remove installed packages.
|
||||
search <packages> Search packages by name.
|
||||
clean-logs Purge logs of dependencies.
|
||||
|
||||
--yes Answer Yes to all questions.
|
||||
--jobs Set it for multicore systems.
|
||||
--resolve-off Turns off dependency resolving.
|
||||
--reinstall Use this option if you want to upgrade.
|
||||
--yes Answer Yes to all questions.
|
||||
--jobs Set it for multicore systems.
|
||||
--resolve-off Turns off dependency resolving.
|
||||
--reinstall Use this option if you want to upgrade.
|
||||
|
||||
-h, --help Show this message and exit.
|
||||
-v, --version Print version and exit.
|
||||
-h, --help Show this message and exit.
|
||||
-v, --version Print version and exit.
|
||||
|
||||
If you need more information try to use slpkg manpage.
|
||||
|
||||
|
||||
Configuration files
|
||||
|
|
|
@ -6,21 +6,29 @@ from slpkg.configs import Configs
|
|||
|
||||
|
||||
def usage(status: int):
|
||||
args = [f'Usage: {Configs.prog_name} [OPTIONS] [packages]\n',
|
||||
colors = Configs.colour
|
||||
color = colors()
|
||||
|
||||
RED = color['RED']
|
||||
CYAN = color['CYAN']
|
||||
YELLOW = color['YELLOW']
|
||||
ENDC = color['ENDC']
|
||||
|
||||
args = [f'USAGE: {Configs.prog_name} [{CYAN}OPTIONS{ENDC}] <packages>\n',
|
||||
' Packaging tool that interacts with the SBo repository.\n',
|
||||
'Options:',
|
||||
' update Update the package lists.',
|
||||
' build Build only the packages.',
|
||||
' install Build and install the packages.',
|
||||
' remove Remove installed packages.',
|
||||
' search Search packages by name.',
|
||||
' clean-logs Purge logs of dependencies.\n',
|
||||
' --yes Answer Yes to all questions.',
|
||||
' --jobs Set it for multicore systems.',
|
||||
' --resolve-off Turns off dependency resolving.',
|
||||
' --reinstall Use this option if you want to upgrade.\n',
|
||||
' -h, --help Show this message and exit.',
|
||||
' -v, --version Print version and exit.\n',
|
||||
'OPTIONS:',
|
||||
f' {RED}update{ENDC} Update the package lists.',
|
||||
f' {CYAN}build{ENDC} <packages> Build only the packages.',
|
||||
f' {CYAN}install{ENDC} <packages> Build and install the packages.',
|
||||
f' {CYAN}remove{ENDC} <packages> Remove installed packages.',
|
||||
f' {CYAN}search{ENDC} <packages> Search packages by name.',
|
||||
f' {CYAN}clean-logs{ENDC} Purge logs of dependencies.\n',
|
||||
f' {YELLOW}--yes{ENDC} Answer Yes to all questions.',
|
||||
f' {YELLOW}--jobs{ENDC} Set it for multicore systems.',
|
||||
f' {YELLOW}--resolve-off{ENDC} Turns off dependency resolving.',
|
||||
f' {YELLOW}--reinstall{ENDC} Use this option if you want to upgrade.\n',
|
||||
' -h, --help Show this message and exit.',
|
||||
' -v, --version Print version and exit.\n',
|
||||
'If you need more information try to use slpkg manpage.']
|
||||
|
||||
for opt in args:
|
||||
|
|
Loading…
Reference in a new issue