1
0
Fork 0

Merging upstream version 0.10.10.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-11 18:39:16 +01:00
parent 77e95bf22e
commit 8ed672cb80
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
9 changed files with 253 additions and 99 deletions

View file

@ -61,7 +61,6 @@ def f_ls(args: argparse.Namespace):
def f_group(args: argparse.Namespace):
repos = utils.get_repos()
groups = utils.get_groups()
if args.to_group:
gname = input('group name? ')
@ -74,7 +73,7 @@ def f_group(args: argparse.Namespace):
utils.write_to_groups_file({gname: sorted(args.to_group)}, 'a+')
else:
for group, repos in groups.items():
print(f"{group}: {', '.join(repos)}")
print(f"{group}: {' '.join(repos)}")
def f_ungroup(args: argparse.Namespace):

View file

@ -1,7 +1,8 @@
import os
def get_config_dir() -> str:
parent = os.environ.get('XDG_CONFIG_HOME') or os.path.join(
os.path.expanduser('~'), '.config')
root = os.path.join(parent,"gita")
root = os.path.join(parent, "gita")
return root