Updated the cli menu

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2022-11-23 21:25:55 +02:00
parent 5a2ac83b2a
commit b91963ed9f
4 changed files with 55 additions and 46 deletions

View file

@ -1,6 +1,8 @@
4.3.0 - 23/11/2022
Added:
- Message for blacklisted packages
Updated:
- The cli menu
4.2.9 - 19/11/2022
Bugfixed:

View file

@ -51,15 +51,15 @@ Usage
update Update the package lists.
upgrade Upgrade all the packages.
check-updates Check for news on ChangeLog.txt.
build <packages> Build only the packages.
install <packages> Build and install the packages.
download <packages> Download only the scripts and sources.
remove <packages> Remove installed packages.
find <packages> Find installed packages.
view <packages> View packages from the repository.
search <packages> Search packages from the repository.
clean-logs Clean dependencies log tracking.
clean-tmp Deletes all the downloaded sources.
-b, build <packages> Build only the packages.
-i, install <packages> Build and install the packages.
-d, download <packages> Download only the scripts and sources.
-r, remove <packages> Remove installed packages.
-f, find <packages> Find installed packages.
-w, view <packages> View packages from the repository.
-s, search <packages> Search packages from the repository.
OPTIONS:
--yes Answer Yes to all questions.

View file

@ -222,15 +222,22 @@ def main():
'update': argparse.update,
'upgrade': argparse.upgrade,
'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-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:

View file

@ -22,15 +22,15 @@ def usage(status: int):
f' {RED}update{ENDC} Update the package lists.',
f' {CYAN}upgrade{ENDC} Upgrade all the packages.',
f' {CYAN}check-updates{ENDC} Check for news on ChangeLog.txt.',
f' {CYAN}build{ENDC} <packages> Build only the packages.',
f' {CYAN}install{ENDC} <packages> Build and install the packages.',
f' {CYAN}download{ENDC} <packages> Download only the scripts and sources.',
f' {CYAN}remove{ENDC} <packages> Remove installed packages.',
f' {CYAN}find{ENDC} <packages> Find installed packages.',
f' {CYAN}view{ENDC} <packages> View packages from the repository.',
f' {CYAN}search{ENDC} <packages> Search packages from the repository.',
f' {CYAN}clean-logs{ENDC} Clean dependencies log tracking.',
f' {CYAN}clean-tmp{ENDC} Delete all the downloaded sources.\n',
f' {CYAN}clean-tmp{ENDC} Delete all the downloaded sources.',
f' {CYAN}-b, build{ENDC} <packages> Build only the packages.',
f' {CYAN}-i, install{ENDC} <packages> Build and install the packages.',
f' {CYAN}-d, download{ENDC} <packages> Download only the scripts and sources.',
f' {CYAN}-r, remove{ENDC} <packages> Remove installed packages.',
f' {CYAN}-f, find{ENDC} <packages> Find installed packages.',
f' {CYAN}-w, view{ENDC} <packages> View packages from the repository.',
f' {CYAN}-s, search{ENDC} <packages> Search packages from the repository.\n',
f'{BOLD}OPTIONS:{ENDC}',
f' {YELLOW}--yes{ENDC} Answer Yes to all questions.',
f' {YELLOW}--jobs{ENDC} Set it for multicore systems.',