Git Product home page Git Product logo

Comments (6)

iambibhas avatar iambibhas commented on July 24, 2024

Try -

$ sudo pip install --upgrade gitinit
$ gitinit -L

from gitinit.

kseistrup avatar kseistrup commented on July 24, 2024

Cool, thanks for being so responsive.

Further enhancement: Alphabetizing the languages and putting one language per output line makes it so much easier to find your favourite language. :)

from gitinit.

kseistrup avatar kseistrup commented on July 24, 2024

I'm aware you've closed the issue, but here's a suggestion:

diff --git a/gitinit/gitinit.py b/gitinit/gitinit.py
index 5acae5f..0747f8f 100755
--- a/gitinit/gitinit.py
+++ b/gitinit/gitinit.py
@@ -118,12 +118,9 @@ def main():

     if args.list:
         print "List of languages supported right now:"
-        l = []
         gi_list = manager.all_gitignores()
-        for gi in gi_list:
-            if gi:
-                l.append(gi.split('/')[-1].split('.')[0])
-        print ', '.join(l)
+        l = [gi.split('/')[-1].split('.')[0].lower() for gi in gi_list if gi]
+        print ', '.join(sorted(l))
         return

     language = args.language or 'generic'
diff --git a/setup.py b/setup.py
index 8590ef6..d643615 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ __readme__ = os.path.join(__currdir__, 'README')

 setup(
     name="gitinit",
-    version="1.0.6",
+    version="1.0.6.2",
     author="Bibhas C Debnath",
     author_email="[email protected]",
     description=("Initiates git with gitignore for provided language"),

:)

from gitinit.

iambibhas avatar iambibhas commented on July 24, 2024

You know, I just came back home and on the road I was thinking about this particular piece of code. :D Will do this and check. :)

from gitinit.

iambibhas avatar iambibhas commented on July 24, 2024

Install the dev version from git and check the -L output.

from gitinit.

kseistrup avatar kseistrup commented on July 24, 2024

/me likes :)

from gitinit.

Related Issues (3)

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.