mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-19 10:27:07 +01:00
Updated for cli menu
This commit is contained in:
parent
4e0de294e0
commit
9f96ea26a2
2 changed files with 11 additions and 5 deletions
10
README.md
10
README.md
|
@ -86,9 +86,13 @@ The majority of trials have been made in Slackware x86_64 'stable' environment.
|
|||
### Command Line Tool Usage
|
||||
|
||||
```
|
||||
USAGE: slpkg [COMMAND] [OPTIONS] [FILELIST|PACKAGES...]
|
||||
slpkg - version 4.8.2
|
||||
|
||||
DESCRIPTION: Package manager utility for Slackware.
|
||||
USAGE:
|
||||
slpkg [COMMAND] [OPTIONS] [FILELIST|PACKAGES...]
|
||||
|
||||
DESCRIPTION:
|
||||
Package manager utility for Slackware.
|
||||
|
||||
COMMANDS:
|
||||
-u, update Update the package lists.
|
||||
|
@ -101,8 +105,8 @@ COMMANDS:
|
|||
-D, clean-tmp Delete 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.
|
||||
-d, download [packages...] Download only the scripts and sources.
|
||||
-f, find [packages...] Find installed packages.
|
||||
-w, view [packages...] View packages from the repository.
|
||||
-s, search [packages...] Search packages from the repository.
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
from typing import NoReturn
|
||||
from slpkg.configs import Configs
|
||||
from slpkg.views.version import Version
|
||||
|
||||
|
||||
class Usage(Configs):
|
||||
|
@ -44,9 +45,10 @@ class Usage(Configs):
|
|||
def help(self, status: int) -> NoReturn:
|
||||
""" Prints the main menu. """
|
||||
args: str = (
|
||||
f'{self.bold}USAGE:{self.endc} {self.prog_name} [{self.cyan}COMMAND{self.endc}] '
|
||||
f'{self.prog_name} - version {Version().version}\n\n'
|
||||
f'{self.bold}USAGE:{self.endc}\n {self.prog_name} [{self.cyan}COMMAND{self.endc}] '
|
||||
f'[{self.yellow}OPTIONS{self.endc}] [FILELIST|PACKAGES...]\n'
|
||||
f'\n{self.bold}DESCRIPTION:{self.endc} Package manager utility for Slackware.\n'
|
||||
f'\n{self.bold}DESCRIPTION:{self.endc}\n Package manager utility for Slackware.\n'
|
||||
f'\n{self.bold}COMMANDS:{self.endc}\n'
|
||||
f' {self.red}-u, update{self.endc} Update the package lists.\n'
|
||||
f' {self.cyan}-U, upgrade{self.endc} Upgrade all the packages.\n'
|
||||
|
|
Loading…
Reference in a new issue