Giter VIP home page Giter VIP logo

gy's Introduction

gy

image

image

image

image

Yet another .gitignore magician in your command line.

☤ Quickstart

Generate .gitignore for certain language, e.g. Lua:

$ gy generate lua

Multiple languages, e.g. Python, Java, Lisp:

$ gy generate python java lisp

To update archive folder, simply run:

$ gy update

List all supported languages:

$ gy ls

☤ Installation

You can install "gy" via pip from PyPI:

$ pip install gy

☤ Usage

$ gy --help
Usage: gy [OPTIONS] COMMAND [ARGS]...

Yet another .gitignore magician in your command line.

Options:
  --help  Show this message and exit.

Commands:
  generate  generate .gitignore file
  ls        list all supported languages
  update    update archive folder

gy's People

Contributors

cls1991 avatar

Stargazers

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

Watchers

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

gy's Issues

gy update traceback

First I tried to run gy generate python javascript and said the folder was empty, that I should run gy update. So I did and got the current traceback:

@ gy update
updating archive folder  [##################------------------]   50%
Traceback (most recent call last):
  File "/home/dinhego/.virtualenvs/logistica/bin/gy", line 33, in <module>
    sys.exit(load_entry_point('gy==1.0.2', 'console_scripts', 'gy')())
  File "/home/dinhego/.virtualenvs/logistica/lib/python3.9/site-packages/click/core.py", line 1137, in __call__
    return self.main(*args, **kwargs)
  File "/home/dinhego/.virtualenvs/logistica/lib/python3.9/site-packages/click/core.py", line 1062, in main
    rv = self.invoke(ctx)
  File "/home/dinhego/.virtualenvs/logistica/lib/python3.9/site-packages/click/core.py", line 1668, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/dinhego/.virtualenvs/logistica/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/dinhego/.virtualenvs/logistica/lib/python3.9/site-packages/click/core.py", line 763, in invoke
    return __callback(*args, **kwargs)
  File "/home/dinhego/.virtualenvs/logistica/lib/python3.9/site-packages/gy.py", line 116, in update
    exec ('{0}({1})'.format(t[0], t[1]))
  File "<string>", line 1, in <module>
  File "/home/dinhego/.virtualenvs/logistica/lib/python3.9/site-packages/gy.py", line 43, in _download_zip
    f.write(r.content)
TypeError: write() argument must be str, not bytes

I installed it on a venv. Could that be a problem?

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.