diff --git a/completions/blog.bash b/completions/blog.bash index ef7c0fb..4288dcf 100644 --- a/completions/blog.bash +++ b/completions/blog.bash @@ -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 diff --git a/scripts/blog b/scripts/blog index 68721b7..6645a3a 100755 --- a/scripts/blog +++ b/scripts/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,