Skip to content

Commit

Permalink
No args output is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
jasursadikov committed Oct 11, 2024
1 parent e5fee3b commit 6f34d84
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def _create_parser() -> ArgumentParser:
def run(self) -> None:
# Displays default help message
if len(sys.argv) == 1 or sys.argv[1] in HELP:
utils.version()
self.parser.print_help()
return
# Sets global repository in .mudsettings
Expand Down
2 changes: 1 addition & 1 deletion runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def get_git_origin_host_icon(url: str):
origin_url = ''

formatted_path = f'{get_git_origin_host_icon(origin_url)}{self._get_formatted_path(path)}'
size = f'{format_size(get_directory_size(path))}'
size = format_size(get_directory_size(path))
commits = f'{BOLD}{subprocess.check_output("git rev-list --count HEAD", shell=True, text=True, cwd=path).strip()}{RESET} {DIM}commits{RESET}'
user_commits = f'{GREEN}{BOLD}{subprocess.check_output("git rev-list --count --author=\"$(git config user.name)\" HEAD", shell=True, text=True, cwd=path).strip()}{RESET} {DIM}by you{RESET}'
branch = self._get_branch_status(path)
Expand Down
6 changes: 5 additions & 1 deletion styles.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@

RESET = '\033[0m'

ALL = BKG + TEXT + STYLES + END + [RESET]
START_URL = '\033]8;;'
URL_TEXT = '\a'
END_URL = '\033]8;;\a'

ALL = BKG + TEXT + STYLES + END + [RESET, START_URL, URL_TEXT, END_URL]

GLYPHS = {
'ahead': ['\uf062', 'Ahead'],
Expand Down
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def version() -> None:
os.chdir(os.path.dirname(os.path.abspath(__file__)))
hash = subprocess.check_output('git rev-parse HEAD', shell=True, text=True).splitlines()[0]
logo = get_logo()
info = f'Jasur Sadikov\nhttps://github.com/jasursadikov/mud\n{BOLD}{random.choice(TEXT[3:])}{hash}{RESET}'
info = f'Jasur Sadikov <[email protected]>\nhttps://github.com/jasursadikov/mud\n{BOLD}{random.choice(TEXT[3:])}{hash}{RESET}'
print(logo)
print(info)

Expand Down

0 comments on commit 6f34d84

Please sign in to comment.