aboutsummaryrefslogtreecommitdiffhomepage
path: root/snippets/bash_case
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-11-28 13:12:56 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-11-28 13:12:56 +0800
commit2c9ca86aa9317420afe10449a45a21f56ec4c22f (patch)
tree9abc5ea0ed79c67efa69d63d7fdec8ce0668d504 /snippets/bash_case
parent91f3e8c038e289009554e69f05abc75bccee8368 (diff)
Update
Diffstat (limited to 'snippets/bash_case')
-rw-r--r--snippets/bash_case10
1 files changed, 10 insertions, 0 deletions
diff --git a/snippets/bash_case b/snippets/bash_case
new file mode 100644
index 0000000..a91117c
--- /dev/null
+++ b/snippets/bash_case
@@ -0,0 +1,10 @@
1case "$1" in
2 start | up)
3 vagrant up
4 ;;
5
6 *)
7 echo "Usage: $0 {start|stop|ssh}"
8 ;;
9esac
10