Skip to main content

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.

  1. 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
    
  2. 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.

  1. -r - repository

    The -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
    
  2. -t - token

    The -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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graniteloom-0.2.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

graniteloom-0.2.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for graniteloom-0.2.0.tar.gz
Algorithm Hash digest
SHA256 47d96fe0131baec9788e5d79b1e7d0c718f7863b3c8d9dc8da2c0bfee15c8bd1
MD5 b1b85e6c37713b33dfd82164f517cdd4
BLAKE2b-256 f9a7446d68af18e088c33991269ddca84ffa40bc8a3898c8e1a37378a2785f35

See more details on using hashes here.

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

Hashes for graniteloom-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ad9be47ba48148c7785625a51b57c1f7a57ad435a2fba716a90a62952210dd9
MD5 55dc33ca028d95a736a06401d0e255fd
BLAKE2b-256 b64d6a62c68849c8e778b7f9281f82744228352dcb8c1160de13254287950f54

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page