Auth Token based easy repo cloning
Project description
granite.
Granite is our tool to handle working from foreign devices. It uses Github Access Tokens to clone, commit and push to your repositories.
Install ✅
Use the pip install command:
python -m pip install --upgrade graniteloom
Install the test version:
python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple --upgrade graniteloom
Once the install is complete, check if it worked:
python -m garniteloom help
How to use?
The granite CLI uses an eccentric naming system for arguments and argument types:
Normals:
<cmd> <arg1> <arg2> ... <argn>Normal args don't have a special syntax, it's just the command.Modifiers:
<cmd> -modifier <modifier-value> -modifier2 "a modifier accepts strings"The modifiers take a value which can be a single word or a string.Tags:
<cmd> --tagTags modify the command line experience, but they don't take values.
Show the help menu 📜
The help menu has explanations for all available commands.
python -m garniteloom help
Clone a repository 📦
If the -r and/or -t modifiers are not provided, the CLI will prompt you to specify the repository url and the access token.
python -m garniteloom clone
Workspace ⚗️
The workspace category contains commands which are helpful when managing previously cloned repositories.
-
The
login/joincommand:You can log into a workspace, this means adding the remote origin by providing the access token and the repository's url.
If the-rand/or-tmodifiers are not provided, the CLI will prompt you to specify the repository url and the access token.python -m garniteloom workspace join
-
The
logout/quitcommand:You can logout from a workspace, this removes the remote origin, so you will be able to commit until you sign in again.
If the-rand/or-tmodifiers are not provided, the CLI will prompt you to specify the repository url and the access token.python -m garniteloom workspace quit
Modifiers 🛠️
The modifiers used to make managing repositories a bit easier.
-
-r- repositoryThe
-rmodifier is used to provide the repository's url.If used alone, without
-tthe CLI will still prompt you for the access token.python -m garniteloom clone -r https://github.com/example/repository
-
-t- tokenThe
-tmodifier is used to provide the personal access token.If used alone, without
-rthe CLI will still prompt you for the repository's url.python -m garniteloom clone -t <token>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file graniteloom-0.2.0.tar.gz.
File metadata
- Download URL: graniteloom-0.2.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47d96fe0131baec9788e5d79b1e7d0c718f7863b3c8d9dc8da2c0bfee15c8bd1
|
|
| MD5 |
b1b85e6c37713b33dfd82164f517cdd4
|
|
| BLAKE2b-256 |
f9a7446d68af18e088c33991269ddca84ffa40bc8a3898c8e1a37378a2785f35
|
File details
Details for the file graniteloom-0.2.0-py3-none-any.whl.
File metadata
- Download URL: graniteloom-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ad9be47ba48148c7785625a51b57c1f7a57ad435a2fba716a90a62952210dd9
|
|
| MD5 |
55dc33ca028d95a736a06401d0e255fd
|
|
| BLAKE2b-256 |
b64d6a62c68849c8e778b7f9281f82744228352dcb8c1160de13254287950f54
|