Skip to content

Commit

Permalink
add --offline too
Browse files Browse the repository at this point in the history
  • Loading branch information
glennj committed Jan 19, 2024
1 parent 1d780d1 commit 7890cd6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion completions/configlet.bash
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ _configlet_complete_create_() {
_configlet_complete_slugs_ "practice" "concept"
;;
*)
_configlet_complete_options_ "--approach --article --concept-exercise -e --exercise --practice-exercise $global_opts"
_configlet_complete_options_ "--approach --article --concept-exercise -e --exercise --practice-exercise -o --offline $global_opts"
;;
esac
}
Expand Down
3 changes: 2 additions & 1 deletion completions/configlet.fish
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ complete -c configlet -n "__fish_seen_subcommand_from completion" -s s -l shell
# create subcommand
complete -c configlet -n "__fish_seen_subcommand_from create" -s e -l exercise -d "exercise slug" \
-xa '(__fish_configlet_find_dirs ./exercises/{concept,practice})'
complete -c configlet -n "__fish_seen_subcommand_from create" -s o -l offline -d "Do not update prob-specs cache"
complete -c configlet -n "__fish_seen_subcommand_from create" -l approach -d "The slug of the approach"
complete -c configlet -n "__fish_seen_subcommand_from create" -l article -d "The slug of the article"
complete -c configlet -n "__fish_seen_subcommand_from create" -l practice-exercise -d "The slug of the practice exercise"
complete -c configlet -n "__fish_seen_subcommand_from create" -l practice-exercise -d "The slug of the practice exercise"
complete -c configlet -n "__fish_seen_subcommand_from create" -l concept-exercise -d "The slug of the concept exercise"

# fmt subcommand
Expand Down
1 change: 1 addition & 0 deletions completions/configlet.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ _configlet() {
_arguments "${_arguments_options[@]}" \
"$_configlet_global_opts[@]" \
'(-e --exercise)'{-e+,--exercise=}'[exercise slug]:slug:_configlet_complete_any_exercise_slug' \
{-o,--offline}'[Do not update prob-specs cache]' \
'--approach=[The slug of the approach]' \
'--article=[The slug of the article]' \
'--concept-exercise=[The slug of the concept exercise]' \
Expand Down

0 comments on commit 7890cd6

Please sign in to comment.