mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Updated the cli menu
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
5a2ac83b2a
commit
b91963ed9f
4 changed files with 55 additions and 46 deletions
|
@ -1,6 +1,8 @@
|
||||||
4.3.0 - 23/11/2022
|
4.3.0 - 23/11/2022
|
||||||
Added:
|
Added:
|
||||||
- Message for blacklisted packages
|
- Message for blacklisted packages
|
||||||
|
Updated:
|
||||||
|
- The cli menu
|
||||||
|
|
||||||
4.2.9 - 19/11/2022
|
4.2.9 - 19/11/2022
|
||||||
Bugfixed:
|
Bugfixed:
|
||||||
|
|
38
README.rst
38
README.rst
|
@ -48,28 +48,28 @@ Usage
|
||||||
Packaging tool that interacts with the SBo repository.
|
Packaging tool that interacts with the SBo repository.
|
||||||
|
|
||||||
COMMANDS:
|
COMMANDS:
|
||||||
update Update the package lists.
|
update Update the package lists.
|
||||||
upgrade Upgrade all the packages.
|
upgrade Upgrade all the packages.
|
||||||
check-updates Check for news on ChangeLog.txt.
|
check-updates Check for news on ChangeLog.txt.
|
||||||
build <packages> Build only the packages.
|
clean-logs Clean dependencies log tracking.
|
||||||
install <packages> Build and install the packages.
|
clean-tmp Deletes all the downloaded sources.
|
||||||
download <packages> Download only the scripts and sources.
|
-b, build <packages> Build only the packages.
|
||||||
remove <packages> Remove installed packages.
|
-i, install <packages> Build and install the packages.
|
||||||
find <packages> Find installed packages.
|
-d, download <packages> Download only the scripts and sources.
|
||||||
view <packages> View packages from the repository.
|
-r, remove <packages> Remove installed packages.
|
||||||
search <packages> Search packages from the repository.
|
-f, find <packages> Find installed packages.
|
||||||
clean-logs Clean dependencies log tracking.
|
-w, view <packages> View packages from the repository.
|
||||||
clean-tmp Deletes all the downloaded sources.
|
-s, search <packages> Search packages from the repository.
|
||||||
|
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
--yes Answer Yes to all questions.
|
--yes Answer Yes to all questions.
|
||||||
--jobs Set it for multicore systems.
|
--jobs Set it for multicore systems.
|
||||||
--resolve-off Turns off dependency resolving.
|
--resolve-off Turns off dependency resolving.
|
||||||
--reinstall Upgrade packages of the same version.
|
--reinstall Upgrade packages of the same version.
|
||||||
--skip-installed Skip installed packages.
|
--skip-installed Skip installed packages.
|
||||||
|
|
||||||
-h, --help Show this message and exit.
|
-h, --help Show this message and exit.
|
||||||
-v, --version Print version and exit.
|
-v, --version Print version and exit.
|
||||||
|
|
||||||
If you need more information try to use slpkg manpage.
|
If you need more information try to use slpkg manpage.
|
||||||
|
|
||||||
|
|
|
@ -222,15 +222,22 @@ def main():
|
||||||
'update': argparse.update,
|
'update': argparse.update,
|
||||||
'upgrade': argparse.upgrade,
|
'upgrade': argparse.upgrade,
|
||||||
'check-updates': argparse.check_updates,
|
'check-updates': argparse.check_updates,
|
||||||
'build': argparse.build,
|
|
||||||
'install': argparse.install,
|
|
||||||
'download': argparse.download,
|
|
||||||
'remove': argparse.remove,
|
|
||||||
'view': argparse.view,
|
|
||||||
'find': argparse.find,
|
|
||||||
'search': argparse.search,
|
|
||||||
'clean-logs': argparse.clean_logs,
|
'clean-logs': argparse.clean_logs,
|
||||||
'clean-tmp': argparse.clean_tmp
|
'clean-tmp': argparse.clean_tmp,
|
||||||
|
'build': argparse.build,
|
||||||
|
'-b': argparse.build,
|
||||||
|
'install': argparse.install,
|
||||||
|
'-i': argparse.install,
|
||||||
|
'download': argparse.download,
|
||||||
|
'-d': argparse.download,
|
||||||
|
'remove': argparse.remove,
|
||||||
|
'-r': argparse.remove,
|
||||||
|
'view': argparse.view,
|
||||||
|
'-w': argparse.view,
|
||||||
|
'find': argparse.find,
|
||||||
|
'-f': argparse.find,
|
||||||
|
'search': argparse.search,
|
||||||
|
'-s': argparse.search
|
||||||
}
|
}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -19,26 +19,26 @@ def usage(status: int):
|
||||||
f'{BOLD}DESCRIPTION:{ENDC}',
|
f'{BOLD}DESCRIPTION:{ENDC}',
|
||||||
' Packaging tool that interacts with the SBo repository.\n',
|
' Packaging tool that interacts with the SBo repository.\n',
|
||||||
f'{BOLD}COMMANDS:{ENDC}',
|
f'{BOLD}COMMANDS:{ENDC}',
|
||||||
f' {RED}update{ENDC} Update the package lists.',
|
f' {RED}update{ENDC} Update the package lists.',
|
||||||
f' {CYAN}upgrade{ENDC} Upgrade all the packages.',
|
f' {CYAN}upgrade{ENDC} Upgrade all the packages.',
|
||||||
f' {CYAN}check-updates{ENDC} Check for news on ChangeLog.txt.',
|
f' {CYAN}check-updates{ENDC} Check for news on ChangeLog.txt.',
|
||||||
f' {CYAN}build{ENDC} <packages> Build only the packages.',
|
f' {CYAN}clean-logs{ENDC} Clean dependencies log tracking.',
|
||||||
f' {CYAN}install{ENDC} <packages> Build and install the packages.',
|
f' {CYAN}clean-tmp{ENDC} Delete all the downloaded sources.',
|
||||||
f' {CYAN}download{ENDC} <packages> Download only the scripts and sources.',
|
f' {CYAN}-b, build{ENDC} <packages> Build only the packages.',
|
||||||
f' {CYAN}remove{ENDC} <packages> Remove installed packages.',
|
f' {CYAN}-i, install{ENDC} <packages> Build and install the packages.',
|
||||||
f' {CYAN}find{ENDC} <packages> Find installed packages.',
|
f' {CYAN}-d, download{ENDC} <packages> Download only the scripts and sources.',
|
||||||
f' {CYAN}view{ENDC} <packages> View packages from the repository.',
|
f' {CYAN}-r, remove{ENDC} <packages> Remove installed packages.',
|
||||||
f' {CYAN}search{ENDC} <packages> Search packages from the repository.',
|
f' {CYAN}-f, find{ENDC} <packages> Find installed packages.',
|
||||||
f' {CYAN}clean-logs{ENDC} Clean dependencies log tracking.',
|
f' {CYAN}-w, view{ENDC} <packages> View packages from the repository.',
|
||||||
f' {CYAN}clean-tmp{ENDC} Delete all the downloaded sources.\n',
|
f' {CYAN}-s, search{ENDC} <packages> Search packages from the repository.\n',
|
||||||
f'{BOLD}OPTIONS:{ENDC}',
|
f'{BOLD}OPTIONS:{ENDC}',
|
||||||
f' {YELLOW}--yes{ENDC} Answer Yes to all questions.',
|
f' {YELLOW}--yes{ENDC} Answer Yes to all questions.',
|
||||||
f' {YELLOW}--jobs{ENDC} Set it for multicore systems.',
|
f' {YELLOW}--jobs{ENDC} Set it for multicore systems.',
|
||||||
f' {YELLOW}--resolve-off{ENDC} Turns off dependency resolving.',
|
f' {YELLOW}--resolve-off{ENDC} Turns off dependency resolving.',
|
||||||
f' {YELLOW}--reinstall{ENDC} Upgrade packages of the same version.',
|
f' {YELLOW}--reinstall{ENDC} Upgrade packages of the same version.',
|
||||||
f' {YELLOW}--skip-installed{ENDC} Skip installed packages.\n',
|
f' {YELLOW}--skip-installed{ENDC} Skip installed packages.\n',
|
||||||
' -h, --help Show this message and exit.',
|
' -h, --help Show this message and exit.',
|
||||||
' -v, --version Print version and exit.\n',
|
' -v, --version Print version and exit.\n',
|
||||||
'Edit the configuration file in the /etc/slpkg/slpkg.yml.',
|
'Edit the configuration file in the /etc/slpkg/slpkg.yml.',
|
||||||
'If you need more information try to use slpkg manpage.']
|
'If you need more information try to use slpkg manpage.']
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue