-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prune local branches that have been deleted on the remote to fix remo…
…te branch parsing (#42) * debug, finally got the error after rebooting * debug * pruning should fix it * remove duplicate check, it's on line 198 as well * change comment * don't prune * debug * debug * debug * debug * simpler * add a second check just in case * add a second check just in case * add color * add color * add support for more colors * try cyan * use info * i mean prompt :D * add newline * switch * better * debug * support stale branches * remove * debug * remove debugging * remove debugging * change info print * add color to username * use error function * Bump version
- Loading branch information
Showing
5 changed files
with
69 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,37 @@ | ||
#!/usr/bin/python | ||
# -*- coding: utf-8 -*- | ||
class COLORS: | ||
# HEADER = '\033[95m' | ||
OKBLUE = '\033[94m' | ||
CBLUE = '\33[44m' | ||
# BOLD = '\033[1m' | ||
OKGREEN = '\033[92m' | ||
CWHITE = '\33[37m' | ||
ENDC = '\033[0m' + CWHITE | ||
UNDERLINE = '\033[4m' | ||
def __init__(self): | ||
self.HEADER = '\033[95m' | ||
self.OKBLUE = '\033[94m' | ||
self.CBLUE = '\33[44m' | ||
self.BOLD = '\033[1m' | ||
self.CITALIC = '\33[3m' | ||
self.OKGREEN = '\033[92m' | ||
self.CWHITE = '\33[37m' | ||
self.ENDC = '\033[0m' + self.CWHITE | ||
self.UNDERLINE = '\033[4m' | ||
self.PINK = '\33[38;5;207m' | ||
self.PRETTY_YELLOW = self.BASE(220) | ||
|
||
RED = '\033[91m' | ||
PURPLE_BG = '\33[45m' | ||
YELLOW = '\033[93m' | ||
self.RED = '\033[91m' | ||
self.PURPLE_BG = '\33[45m' | ||
self.YELLOW = '\033[93m' | ||
self.BLUE_GREEN = self.BASE(85) | ||
|
||
FAIL = RED | ||
INFO = PURPLE_BG | ||
SUCCESS = OKGREEN | ||
PROMPT = YELLOW | ||
CYAN = '\033[36m' | ||
WARNING = '\033[33m' | ||
self.FAIL = self.RED | ||
self.INFO = self.PURPLE_BG | ||
self.SUCCESS = self.OKGREEN | ||
self.PROMPT = self.YELLOW | ||
self.DBLUE = '\033[36m' | ||
self.CYAN = self.BASE(39) | ||
self.WARNING = '\033[33m' | ||
|
||
def BASE(self, col): # seems to support more colors | ||
return '\33[38;5;{}m'.format(col) | ||
|
||
def BASEBG(self, col): # seems to support more colors | ||
return '\33[48;5;{}m'.format(col) | ||
|
||
|
||
COLORS = COLORS() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters