Comments (6)
Try -
$ sudo pip install --upgrade gitinit
$ gitinit -L
from gitinit.
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.
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.
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.
Install the dev version from git and check the -L
output.
from gitinit.
/me likes :)
from gitinit.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitinit.