Merging upstream version 0.10.10.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
77e95bf22e
commit
8ed672cb80
9 changed files with 253 additions and 99 deletions
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue