Skip to content

Python port of gst for cross platform compatibility

License

Notifications You must be signed in to change notification settings

cpagravel/gst-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gst MIT License

Synposis

gst is short for Git Status - it's a commandline app with some neat features for improving your workflow with git Note that gst is meant for in dark themed terminals

Usage

Note that the output is colorized in the terminal and intended for a dark themed terminal. It doesn't show here - waiting for colorized text in Github markdown (re: github/markup#369).

$ gst # Show status of repository
#   INDEX     CUR_TREE  FILE
0   Untrackd  Untrackd  LICENSE.md (0)
1             Modified  colors.py (1)
2   Untrackd  Untrackd  dist/ (2)

$ gst -a 0,1 # Add a file[s]/stage changes
#   INDEX     CUR_TREE  FILE
0   Added               LICENSE.md (0)
1   Modified            colors.py (1)
2   Untrackd  Untrackd  dist/ (2)

$ gst -r 1 # reset staged changes
#   INDEX     CUR_TREE  FILE
0   Added               LICENSE.md (0)
1             Modified  colors.py (1)
2   Untrackd  Untrackd  dist/ (2)

$ gst -d 1 # view changes of a file
diff --git a/colors.py b/colors.py
index e697793..295fbeb 100644
--- a/colors.py
+++ b/colors.py
@@ -1,3 +1,4 @@
 class Colors(object):
+    BLUE        = '\033[1;34m'
     BOLD        = '\033[;1m'

$ gst -c 1 # checkout file to revert changes
#   INDEX     CUR_TREE  FILE
0   Added               LICENSE.md (0)
1   Untrackd  Untrackd  dist/ (1)

$ gst -D 1 # delete a file
#   INDEX     CUR_TREE  FILE
0   Added               LICENSE.md (0)

Installation

Install from pip.

pip install gst

Compatability

TODO

  • Use a class and get rid of globals (parser, item_count)
  • Upload pictures to show colored text (or wish harder for github to support it)

License MIT

View project License.

About

Python port of gst for cross platform compatibility

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages