mirror of
https://git.ari.lt/ari.lt/blog.ari.lt.git
synced 2025-02-04 09:39:25 +01:00
update @ Sun 5 Jun 21:49:56 EEST 2022
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
a791ee2ca0
commit
ffe2a53e32
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue