update @ Sun 5 Jun 21:49:56 EEST 2022

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-06-05 21:49:56 +03:00
parent a791ee2ca0
commit ffe2a53e32
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: A50D5B4B599AF8A2
2 changed files with 6 additions and 6 deletions

View file

@ -4,8 +4,8 @@ _blog() {
local cur
_init_completion -s || return
COMPREPLY=($(compgen -W "help new build list\
rm edit new-config clean metadata static" -- "$cur"))
COMPREPLY=($(compgen -W "help new build ls\
rm edit defcfg clean metadata static" -- "$cur"))
} && complete -F _blog -o bashdefault -o default blog

View file

@ -541,8 +541,8 @@ def edit(config: Dict) -> Tuple[int, Dict]:
return EXIT_OK, config
def gen_new_config(config: Dict) -> Tuple[int, Dict]:
"""Make default config"""
def gen_def_config(config: Dict) -> Tuple[int, Dict]:
"""Generate default config"""
if os.path.exists(DEFAULT_CONFIG_FILE):
if iinput("Do you want to overwite config? (y/n)").lower()[0] != "y":
@ -632,10 +632,10 @@ SUBCOMMANDS: Dict = {
"help": dummy,
"new": new_blog,
"build": build,
"list": list_blogs,
"ls": list_blogs,
"rm": remove_blog,
"edit": edit,
"new-config": gen_new_config,
"defcfg": gen_def_config,
"clean": clean,
"metadata": generate_metadata,
"static": generate_static_full,