Giter VIP home page Giter VIP logo

gists.cli's People

Contributors

khilnani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gists.cli's Issues

Python 3 support

I work exclusively in Python 3. It would be nice if this package supported it.

Gist list: console formatting

Right now in the console output of the gist list for files and description columns:

  • columns width is not aligned to longest one (nor truncated to save space)
  • long field value takes multiple lines and do not adhere the table structure (1 cell)
     Files                          Public   Id                        Description
     -----                          ------   --                        -----------
   1 umount-ram.shmount-ram.sh      True     7836484                   None
   2 search.sh                      False    245a9c9919ef85988fb      Usefull console search commands
   3 cluster_serup_with_ambari.md   False    64f6779f8d7757e1696      How to setup a Hadoop\Spark\Shark cluster using Ambari in 5 simple steps
   4 ls-large-files.sh              True     754958                   Searches for (and remove) large files from git repository
   5 parallel-ssh-run.shambari-prereq.md False    91c22c5a0f07f9d0128      Pre-request steps to be made before running ambari cluster setup.
   6 simple-git-branching-model.md  False    663d487d9d44c3f2ce8
   7 run_all_latency.shlatency.py   False    373ff1ba6290a7d20eb      Measuring website performance accessing it through HTTP, HTTPS and SPDY
Depends on CromeDriver http://chromedriver.storage.googleapis.com/index.html in PATH and 'pip install selenium'
   8 .inputrc                       True     689755                   None
   9 jenkins-plugins.mdinstall-jenkins-centos-6-3.shset-server-time-to-UTC.sh True     679116                  None

Shortcut invocation of Gist creation

Currently,

  • ./gists - displays the lists of Gists
  • ./gists ID - displays a Gist
  • ./gists ID "dir" - downloads a Gist to a dir

Similarly, add shortcuts that dont need specifying command 'create/new' to create a gist

  • ./gists FILE
  • ./gists Content
  • ./gists Bool FILE
  • ./gists Bool "Content"
  • ./gists Bool "Description" FILE
  • ./gists Bool "Description" Content

Create Gist - Args for: public/private, description and File or Content

Each option will prompt for public/pvt and description. In silent mode, assumes private and no description.

1 arg options

  • create File
  • create Content

2 arg options

  • create public/pvt File
  • create public/pvt Content
  • create Description File
  • create Description Content

3 arg options

  • create public/pvt Description File
  • create public/pvt Description Content

Create Gist - No args

Will prompt for public/pvt, description and content. silent mode is ignored, always prompts.

Support cloning gists

Gists are fully established repos and can be interacted with as such.
There should be an action gists clone GIST_ID [path] which would clone the specified gist to either the current directory or the path specified. This would allow the user to interact with the gist as a repo, commit files to it and push it back up to the remote.

ascii code problem

gists list
Username: LoveMandy
Password:
Traceback (most recent call last):
  File "/usr/local/bin/gists", line 11, in <module>
    load_entry_point('gists.cli==0.351', 'console_scripts', 'gists')()
  File "build/bdist.macosx-10.12-x86_64/egg/gists_cli/gists.py", line 118, in main
  File "build/bdist.macosx-10.12-x86_64/egg/gists_cli/actions.py", line 54, in list
  File "build/bdist.macosx-10.12-x86_64/egg/gists_cli/api.py", line 55, in getCredentials
  File "build/bdist.macosx-10.12-x86_64/egg/gists_cli/api.py", line 134, in auth
UnicodeEncodeError: 'ascii' codec can't encode character u'\u6708' in position 138: ordinal not in range(128)

Download gist by ID directly to current directory

As a user i'd like to be able to quickly get one of my gists (by id or file name).

Imagine useful shell scripts inside a gist, so every time you need one - you just get it to current dir and run.

smth like

./gists get|g ID 

Support iOS Pythonista

In Pythonista, ~ resolves to the applications home directory that is not writable. The ~/Documents is user accessible directory.

Support for github enterprise

The api endpoint is different for github enterprise. This should be pretty easy to support. The better I approach, I think would be to allow someone to specify the endpoint as an arg. This would require some thought on how best to handle credentials though.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.