mud-git 1.0.0__tar.gz → 1.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,6 +29,6 @@ jobs:
29
29
  - name: Publish to PyPI
30
30
  env:
31
31
  TWINE_USERNAME: "__token__"
32
- TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
32
+ TWINE_PASSWORD: ${{ secrets.TWINE_PAT }}
33
33
  run: |
34
34
  twine upload dist/*
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 Jasur Sadikov
3
+ Copyright (c) 2024 Jasur Sadikov
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mud-git
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: 🗃️ Multi repository git utility. Manage multiple git-repositories simultaneously.
5
5
  Project-URL: Homepage, https://github.com/jasursadikov/mud
6
6
  Project-URL: Issues, https://github.com/jasursadikov/mud/issues
@@ -15,7 +15,7 @@ Description-Content-Type: text/markdown
15
15
 
16
16
  # mud
17
17
 
18
- ![Version](https://img.shields.io/pypi/pyversions/mud?logo=python)
18
+ ![Version](https://img.shields.io/pypi/v/mud-git?logo=python)
19
19
  ![Build Status](https://img.shields.io/github/actions/workflow/status/jasursadikov/mud/test.yaml?logo=github)
20
20
  ![Pulbish](https://img.shields.io/github/actions/workflow/status/jasursadikov/mud/publish.yaml?logo=github)
21
21
 
@@ -25,7 +25,7 @@ mud is a multi-directory git runner which allows you to run git commands in a mu
25
25
 
26
26
  ## Installing
27
27
  ```bash
28
- pip install mud
28
+ pip install mud-git
29
29
  ```
30
30
 
31
31
  ## Getting started
@@ -1,6 +1,6 @@
1
1
  # mud
2
2
 
3
- ![Version](https://img.shields.io/pypi/pyversions/mud?logo=python)
3
+ ![Version](https://img.shields.io/pypi/v/mud-git?logo=python)
4
4
  ![Build Status](https://img.shields.io/github/actions/workflow/status/jasursadikov/mud/test.yaml?logo=github)
5
5
  ![Pulbish](https://img.shields.io/github/actions/workflow/status/jasursadikov/mud/publish.yaml?logo=github)
6
6
 
@@ -10,7 +10,7 @@ mud is a multi-directory git runner which allows you to run git commands in a mu
10
10
 
11
11
  ## Installing
12
12
  ```bash
13
- pip install mud
13
+ pip install mud-git
14
14
  ```
15
15
 
16
16
  ## Getting started
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "mud-git"
7
- version = "1.0.0"
7
+ version = "1.0.2"
8
8
  authors = [{ name = "Jasur Sadikov", email = "jasur@sadikoff.com" }]
9
9
  description = "🗃️ Multi repository git utility. Manage multiple git-repositories simultaneously."
10
10
  readme = "README.md"
@@ -0,0 +1 @@
1
+ __version__ = "1.0.2"
@@ -1,10 +1,9 @@
1
1
  #!/usr/bin/env python3
2
2
 
3
- import sys
4
-
5
3
  from mud import utils, settings
6
4
  from mud.app import App
7
5
 
6
+
8
7
  def run():
9
8
  try:
10
9
  utils.settings = settings.Settings(utils.SETTINGS_FILE_NAME)
@@ -7,13 +7,11 @@ import subprocess
7
7
  from argparse import ArgumentParser
8
8
 
9
9
  from mud import config
10
-
11
10
  from mud import utils
12
- from mud.utils import glyphs
13
-
11
+ from mud.runner import Runner
14
12
  from mud.styles import *
15
13
  from mud.commands import *
16
- from mud.runner import Runner
14
+ from mud.utils import glyphs
17
15
 
18
16
 
19
17
  class App:
@@ -11,7 +11,7 @@ from mud.styles import *
11
11
 
12
12
 
13
13
  class Runner:
14
- _label_color_cache = {}
14
+ _label_color_cache = {}1
15
15
  _current_color_index = 0
16
16
 
17
17
  def __init__(self, repos):
@@ -92,14 +92,14 @@ class Runner:
92
92
 
93
93
  for file in files:
94
94
  file_status = file[:2].strip()
95
- if file_status == 'M':
95
+ if file_status.startswith('M') or file_status.startswith('U'):
96
96
  color = YELLOW
97
- elif file_status == 'A':
98
- color = GREEN
99
- elif file_status == 'R':
100
- color = BLUE
101
- elif file_status == 'D':
97
+ elif file_status.startswith('A') or file_status.startswith('C') or file_status.startswith('??') or file_status.startswith('!!'):
98
+ color = BRIGHT_GREEN
99
+ elif file_status.startswith('D'):
102
100
  color = RED
101
+ elif file_status.startswith('R'):
102
+ color = BLUE
103
103
  else:
104
104
  color = CYAN
105
105
 
@@ -324,9 +324,9 @@ class Runner:
324
324
 
325
325
  for file in files:
326
326
  file = file.lstrip()
327
- if file.startswith('M'):
327
+ if file.startswith('M') or file.startswith('U'):
328
328
  modified += 1
329
- elif file.startswith('A') or file.startswith('??'):
329
+ elif file.startswith('A') or file.startswith('C') or file.startswith('??') or file.startswith('!!'):
330
330
  added += 1
331
331
  elif file.startswith('D'):
332
332
  removed += 1
@@ -1 +0,0 @@
1
- __version__ = "1.0.0"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes