Skip to content

Commit 12e6e47

Browse files
committed
make module override in subcommands a flag
1 parent 26df3aa commit 12e6e47

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
lines changed

src/k16/kl/commands/containers.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
:description "Select containers to run"
1919

2020
:opts [{:option "module"
21-
:short 0
21+
:short "m"
2222
:type :string}]
2323

2424
:runs (fn [props]
@@ -43,7 +43,7 @@
4343
:description "Select containers to run"
4444

4545
:opts [{:option "module"
46-
:short 0
46+
:short "m"
4747
:type :string}]
4848

4949
:runs (fn [props]
@@ -90,7 +90,7 @@
9090
:description "Stop all running containers "
9191

9292
:opts [{:option "module"
93-
:short 0
93+
:short "m"
9494
:type :string}]
9595

9696
:runs (fn [props]

src/k16/kl/commands/endpoints.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@
3838
:description "List all endpoints"
3939

4040
:opts [{:option "module"
41-
:short 0
41+
:short "m"
4242
:type :string}
4343

4444
{:option "service"
45+
:short 0
4546
:type :string}]
4647

4748
:runs list-endpoints}]})

src/k16/kl/commands/modules.clj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@
3333
:description "Pull down changes to a module"
3434

3535
:opts [{:option "module"
36-
:short 0
36+
:short "m"
3737
:type :string}
3838

3939
{:option "update"
4040
:default false
41+
:short 0
4142
:type :with-flag}]
4243

4344
:runs pull!}
@@ -46,11 +47,12 @@
4647
:description "Resolve the latest sha's of a module. This is the same as `pull --update`"
4748

4849
:opts [{:option "module"
49-
:short 0
50+
:short "m"
5051
:type :string}
5152

5253
{:option "force"
5354
:default false
55+
:short 0
5456
:type :with-flag}]
5557

5658
:runs (fn [props]

src/k16/kl/commands/routes.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
:description "List all routes"
9292

9393
:opts [{:option "module"
94-
:short 0
94+
:short "m"
9595
:type :string}
9696

9797
{:option "output"
@@ -105,7 +105,7 @@
105105
:description "Apply any route changes"
106106

107107
:opts [{:option "module"
108-
:short 0
108+
:short "m"
109109
:type :string}]
110110

111111
:runs apply-routes!}]})

src/k16/kl/commands/services.clj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
:description "List all services"
7878

7979
:opts [{:option "module"
80-
:short 0
80+
:short "m"
8181
:type :string}]
8282

8383
:runs list-services}
@@ -86,13 +86,13 @@
8686
:description "Set the default endpoint for a service"
8787

8888
:opts [{:option "module"
89-
:short 0
89+
:short "m"
9090
:type :string}
9191
{:option "service"
92-
:short 1
92+
:short 0
9393
:type :string}
9494
{:option "endpoint"
95-
:short 2
95+
:short 1
9696
:type :string}]
9797

9898
:runs set-default-service-endpoint!}]})

0 commit comments

Comments
 (0)