Skip to content

Commit

Permalink
maidfile -> taskfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rniii committed Aug 11, 2024
1 parent cdcb899 commit 541d775
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion extras/completion/bash
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
_maid() {
case "$2","$3" in
-*,*)
COMPREPLY=( $(compgen -W "-h -l -n -q -f --help --list --dry-run --quiet --maidfile" -- "$2") )
COMPREPLY=( $(compgen -W "-h -l -n -q -f --help --list --dry-run --quiet --taskfile" -- "$2") )
;;
*,-f | *,--maidfile)
COMPREPLY=( $(compgen -f -- "$2") )
Expand Down
2 changes: 1 addition & 1 deletion extras/completion/fish
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ complete -c maid -s h -l help -d "display usage"
complete -c maid -s l -l list -d "list tasks concisely"
complete -c maid -s n -l dry-run -d "don't run anything, only display commands"
complete -c maid -s q -l quiet -d "don't display anything"
complete -c maid -s f -l maidfile -d "use tasks in file"
complete -c maid -s f -l taskfile -d "use tasks in file"

# vim: ft=fish
2 changes: 1 addition & 1 deletion extras/completion/zsh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ _maid() {
"(list)"{-l,--list}"[list available tasks concisely]" \
"(dry-run)"{-n,--dry-run}"[don't run anything, only display commands]" \
"(quiet)"{-q,--quiet}"[don't display anything]" \
"(maidfile)"{-f,--maidfile=}"[use tasks in file]:maidfile:_files" \
"(taskfile)"{-f,--taskfile=}"[use tasks in file]:maidfile:_files" \
":task:_maid_tasks" \
"*:args:_default"
}
Expand Down
2 changes: 1 addition & 1 deletion src/Maid.hs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ run = do
, Option ['l'] ["list"] (NoArg List) "List tasks concisely"
, Option ['n'] ["dry-run"] (NoArg DryRun) "Don't run anything, only display commands"
, Option ['q'] ["quiet"] (NoArg Quiet) "Don't display anything"
, Option ['f'] ["maidfile"] (ReqArg Maidfile "FILE") "Use tasks in FILE"
, Option ['f'] ["taskfile"] (ReqArg Maidfile "FILE") "Use tasks in FILE"
]

parseOpt :: Flag -> StateT Context IO ()
Expand Down

0 comments on commit 541d775

Please sign in to comment.