Skip to main content

No project description provided

Project description

glink

GitHub Build Status PyPI

Sync files between gist and localhost.

Purpose

When I clone a lot of repos and found a lot of interesting code file, I can simplily push them to my gist via glink.

After I pull all the above repos, I can simplily update all my gists via one single command (glink sync).

glink store sync states in ~/.config/Cologler/glink/..., which mean if you move the linked file, it will lose the connection.

Try gist-sync if you need move the gist files.

Installation

pip install glink2

Login

To login a remote repo, you need to edit the ~/.config/Cologler/glink/auth.json. The format is like:

{
    "<USER>@<SERVICE>": ...
}

The user name is required because the glink support multi-accounts per provider.

Gist

Login is required for push only.

To login gist, you need to create a new dev token from https://github.com/settings/tokens/new. Ensure you checked the gist scope.

After you get the token, add following text into auth.json:

{
    "<USER>@gist": "<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

glink2-0.2.1.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

glink2-0.2.1-py3-none-any.whl (12.3 kB view hashes)

Uploaded Python 3

Supported by

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