mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
Update cli menu view
This commit is contained in:
parent
9ca9d28633
commit
fe44576d96
4 changed files with 24 additions and 17 deletions
30
README.rst
30
README.rst
|
@ -43,23 +43,25 @@ Usage
|
||||||
|
|
||||||
USAGE: slpkg [OPTIONS] <packages>
|
USAGE: slpkg [OPTIONS] <packages>
|
||||||
|
|
||||||
Packaging tool that interacts with the SBo repository.
|
DESCRIPTION:
|
||||||
|
Packaging tool that interacts with the SBo repository.
|
||||||
|
|
||||||
|
COMMANDS:
|
||||||
|
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.
|
||||||
|
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
update Update the package lists.
|
--yes Answer Yes to all questions.
|
||||||
build <packages> Build only the packages.
|
--jobs Set it for multicore systems.
|
||||||
install <packages> Build and install the packages.
|
--resolve-off Turns off dependency resolving.
|
||||||
remove <packages> Remove installed packages.
|
--reinstall Use this option if you want to upgrade.
|
||||||
search <packages> Search packages by name.
|
|
||||||
clean-logs Purge logs of dependencies.
|
|
||||||
|
|
||||||
--yes Answer Yes to all questions.
|
-h, --help Show this message and exit.
|
||||||
--jobs Set it for multicore systems.
|
-v, --version Print version and exit.
|
||||||
--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.
|
|
||||||
|
|
||||||
If you need more information try to use slpkg manpage.
|
If you need more information try to use slpkg manpage.
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ slpkg [-h|-v] [update] [build] [install] [remove] [search] [clean-logs] --yes --
|
||||||
Slpkg is a software package manager that installs, updates, and removes packages on Slackware based systems. It automatically computes dependencies and figures out what things should occur to install packages. Slpkg makes it easier to maintain groups of machines without having to manually update.
|
Slpkg is a software package manager that installs, updates, and removes packages on Slackware based systems. It automatically computes dependencies and figures out what things should occur to install packages. Slpkg makes it easier to maintain groups of machines without having to manually update.
|
||||||
.P
|
.P
|
||||||
Slpkg works in accordance with the standards of the organization SlackBuilds.org to build packages. Also uses the Slackware Linux instructions for installation, upgrading or removing packages.
|
Slpkg works in accordance with the standards of the organization SlackBuilds.org to build packages. Also uses the Slackware Linux instructions for installation, upgrading or removing packages.
|
||||||
.SH OPTIONS
|
.SH COMMANDS
|
||||||
.P
|
.P
|
||||||
update
|
update
|
||||||
.RS
|
.RS
|
||||||
|
@ -41,6 +41,7 @@ clean-logs
|
||||||
.RS
|
.RS
|
||||||
Purge logs of dependencies.
|
Purge logs of dependencies.
|
||||||
.RE
|
.RE
|
||||||
|
.SH OPTIONS
|
||||||
.P
|
.P
|
||||||
--yes
|
--yes
|
||||||
.RS
|
.RS
|
||||||
|
|
|
@ -102,6 +102,7 @@ class Configs:
|
||||||
|
|
||||||
if cls.colors in ['on', 'ON']:
|
if cls.colors in ['on', 'ON']:
|
||||||
color = {
|
color = {
|
||||||
|
'BOLD': '\033[1m',
|
||||||
'RED': '\x1b[91m',
|
'RED': '\x1b[91m',
|
||||||
'GREEN': '\x1b[32m',
|
'GREEN': '\x1b[32m',
|
||||||
'YELLOW': '\x1b[93m',
|
'YELLOW': '\x1b[93m',
|
||||||
|
|
|
@ -9,20 +9,23 @@ def usage(status: int):
|
||||||
colors = Configs.colour
|
colors = Configs.colour
|
||||||
color = colors()
|
color = colors()
|
||||||
|
|
||||||
|
BOLD = color['BOLD']
|
||||||
RED = color['RED']
|
RED = color['RED']
|
||||||
CYAN = color['CYAN']
|
CYAN = color['CYAN']
|
||||||
YELLOW = color['YELLOW']
|
YELLOW = color['YELLOW']
|
||||||
ENDC = color['ENDC']
|
ENDC = color['ENDC']
|
||||||
|
|
||||||
args = [f'USAGE: {Configs.prog_name} [{CYAN}OPTIONS{ENDC}] <packages>\n',
|
args = [f'{BOLD}USAGE:{ENDC} {Configs.prog_name} [{CYAN}OPTIONS{ENDC}] <packages>\n',
|
||||||
|
f'{BOLD}DESCRIPTION:{ENDC}',
|
||||||
' Packaging tool that interacts with the SBo repository.\n',
|
' Packaging tool that interacts with the SBo repository.\n',
|
||||||
'OPTIONS:',
|
f'{BOLD}COMMANDS:{ENDC}',
|
||||||
f' {RED}update{ENDC} Update the package lists.',
|
f' {RED}update{ENDC} Update the package lists.',
|
||||||
f' {CYAN}build{ENDC} <packages> Build only the packages.',
|
f' {CYAN}build{ENDC} <packages> Build only the packages.',
|
||||||
f' {CYAN}install{ENDC} <packages> Build and install the packages.',
|
f' {CYAN}install{ENDC} <packages> Build and install the packages.',
|
||||||
f' {CYAN}remove{ENDC} <packages> Remove installed packages.',
|
f' {CYAN}remove{ENDC} <packages> Remove installed packages.',
|
||||||
f' {CYAN}search{ENDC} <packages> Search packages by name.',
|
f' {CYAN}search{ENDC} <packages> Search packages by name.',
|
||||||
f' {CYAN}clean-logs{ENDC} Purge logs of dependencies.\n',
|
f' {CYAN}clean-logs{ENDC} Purge logs of dependencies.\n',
|
||||||
|
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.',
|
||||||
|
|
Loading…
Add table
Reference in a new issue