Skip to content

Commit 260f0d9

Browse files
authored
Add watch args presets (#73)
* Add watch args presets * Test watch args presets
1 parent fe61fab commit 260f0d9

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

dockerc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,22 @@ elif [ "$(echo "$ARGS" | cut -c1)" = '@' ]; then
518518
ARGS="build --dry-run --pull --no-cache$ARGS"
519519
;;
520520

521+
'w')
522+
ARGS="watch$ARGS"
523+
;;
524+
'wq')
525+
ARGS="watch --quiet$ARGS"
526+
;;
527+
'ww')
528+
ARGS="watch --no-up$ARGS"
529+
;;
530+
'wqw')
531+
ARGS="watch --quiet --no-up$ARGS"
532+
;;
533+
'wn')
534+
ARGS="watch --dry-run$ARGS"
535+
;;
536+
521537
'd')
522538
ARGS="down$ARGS"
523539
;;
@@ -716,6 +732,11 @@ elif [ "$(echo "$ARGS" | cut -c1)" = '@' ]; then
716732
echo ' @bp build --pull'
717733
echo ' @bf build --pull --no-cache'
718734
echo ' @bn build --dry-run --pull --no-cache'
735+
echo ' @w watch'
736+
echo ' @wq watch --quiet'
737+
echo ' @ww watch --no-up'
738+
echo ' @wqw watch --quiet --no-up'
739+
echo ' @wn watch --dry-run'
719740
echo ' @d down'
720741
echo ' @da down --remove-orphans'
721742
echo ' @dr down --remove-orphans --rmi local'

test/test/help_args/test_help.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ def get_help_stdout(dockerc_path: str):
2323
b' @uar up --remove-orphans\n'
2424
b' @ufr up -d --force-recreate --remove-orphans\n'
2525
b' @ufar up --force-recreate --remove-orphans\n'
26+
b' @w watch\n'
27+
b' @wq watch --quiet\n'
28+
b' @ww watch --no-up\n'
29+
b' @wqw watch --quiet --no-up\n'
30+
b' @wn watch --dry-run\n'
2631
b' @b build\n'
2732
b' @bp build --pull\n'
2833
b' @bf build --pull --no-cache\n'

0 commit comments

Comments
 (0)