Skip to content

Commit 4c076e2

Browse files
committed
Add storages and kvs as hidden aliases
1 parent 4ca6989 commit 4c076e2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ enum Commands {
124124
/// Manage S3/R2 storage configurations for file storage
125125
#[command(
126126
visible_alias = "s",
127+
alias = "storages",
127128
after_help = "Examples:\n \
128129
ow storage list List storage configs\n \
129130
ow storage create my-bucket --bucket name --endpoint https://..."
@@ -136,6 +137,7 @@ enum Commands {
136137
/// Manage KV namespaces for key-value storage
137138
#[command(
138139
visible_alias = "k",
140+
alias = "kvs",
139141
after_help = "Examples:\n \
140142
ow kv list List KV namespaces\n \
141143
ow kv create cache Create 'cache' namespace"
@@ -224,11 +226,13 @@ fn extract_alias_from_args() -> (Option<String>, Vec<String>) {
224226
"s",
225227
"k",
226228
"d",
227-
// Singular variants (for flexibility)
229+
// Singular/plural variants (for flexibility)
228230
"worker",
229231
"envs",
230232
"environment",
231233
"environments",
234+
"storages",
235+
"kvs",
232236
"db",
233237
"database",
234238
// Help flags

0 commit comments

Comments
 (0)