From 2c2cc18146e837e91b0395bccde42db05bfc2a3a Mon Sep 17 00:00:00 2001 From: Ethan Smith-Coss Date: Sat, 12 Aug 2023 16:00:03 +0100 Subject: [PATCH] Update 'README.md' --- README.md | 86 ++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 75 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index d163de3..fc6c5f6 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,79 @@ -![soypak logo](./assets/soypack-logo.svg) +![soypak logo](https://git.closedless.xyz/ClosedLess/soypak/raw/branch/11435da41b/assets/soypack-logo.svg) # soypak +An additional package manager for managing Debian apps on Linux distros. -An additional package manager for managing Microsoft apps on Linux distros. +This branch is an early prototype to demonstrate the CLI interaction with soypak, +and provides a vision of what is to be created. It is not an early prototype which +can perform package management. With that, there may be typos and other bugs. -## TODO +## Setup & Installation +This branch can be cloned with the following command. +``` +git clone --single-branch --branch 11435da41b https://git.closedless.xyz/ClosedLess/soypak.git +cd soypak/ +``` -- [x] CLI Parser -- [x] Logging -- [ ] Error system -- [ ] Translation system (I18N and PO files) -- [ ] CLI UI -- [ ] Package installer -- [ ] Dependency resolver -- [ ] Package Plug-in Manager +Afterwards, a virtual environment should be created to prevent system-wide pip +installation. +``` +python3 -m venv +``` + +Then the following pip installation commands can be ran +``` +pip3 install -e . +pip3 install clog-x.x.xxx-py3-none-any.whl # where x.x.xxx is the latest version release +``` + +You can fetch the latest version of CLog from +[here](https://git.closedless.xyz/ClosedLess/clog/releases). Either the `.whl` or `tar.gz` file. + +## Using soypak +After setting up soypak, the app can be ran using the Python interpreter +``` +python3 soypak/soypak-cli.py help +``` + +This will print the help message to the terminal and exit. Here, the `help` command +is used explicitly, however the same can be achieved by providing no commands (an +additional error message will also be printed at the top in red). + +The following is the output printed +``` +Usage: soypak [options] [arguments] + +A package manager to manage Microsoft apps. + +Where is one of: + help Display the help message of the give command(s), or print this message. + +Options: + -h, --help show this help message and exit + --version show the program's version number and exit + +Author(s): Ethan Smith-Coss. +Contacts: ethan.sc@closedless.xyz + +Thanks for using our software 🍪 +Copyright (C) ClosedLess 2023. Licensed under GNU GPLv3+ +``` + +As stated in the printed message, `help` provides the help message of a given command. +With this, we can pass 'help' as an argument to `help` +``` +python3 soypak/soypak-cli.py help help +``` + +This will produce the following output +``` +help: Display the help message of the give command(s), or print this message. + +Usage: Usage: help [, , ..., ] + +If no arguments are specified, the general help message is displayed. +``` + +Help messages are structured in the following format: +- `: ` - the name of the command and its shortest description +- `` - how to use the command in question +- `` - an extended description of the command \ No newline at end of file