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> --tag
Tags 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
/join
command:You can log into a workspace, this means adding the remote origin by providing the access token and the repository's url.
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 workspace join
-
The
logout
/quit
command: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-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 workspace quit
Modifiers 🛠️
The modifiers used to make managing repositories a bit easier.
-
-r
- repositoryThe
-r
modifier is used to provide the repository's url.If used alone, without
-t
the CLI will still prompt you for the access token.python -m garniteloom clone -r https://github.com/example/repository
-
-t
- tokenThe
-t
modifier is used to provide the personal access token.If used alone, without
-r
the 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
Hashes for graniteloom-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ad9be47ba48148c7785625a51b57c1f7a57ad435a2fba716a90a62952210dd9 |
|
MD5 | 55dc33ca028d95a736a06401d0e255fd |
|
BLAKE2b-256 | b64d6a62c68849c8e778b7f9281f82744228352dcb8c1160de13254287950f54 |