Skip to content

Commit f67558b

Browse files
monyarmPetarKirov
authored andcommitted
feat(mcl): Add command aliases for backwards compatibility
1 parent c7628d8 commit f67558b

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

packages/mcl/src/src/mcl/commands/ci_matrix.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ version (unittest)
145145

146146
Params params;
147147

148-
@(Command("ci-matrix").Description("Print a table of the cache status of each package"))
148+
@(Command("ci-matrix", "ci_matrix").Description("Print a table of the cache status of each package"))
149149
struct ci_matrix_args
150150
{
151151
}
@@ -187,7 +187,7 @@ Package[] checkCacheStatus(Package[] packages)
187187
return packages;
188188
}
189189

190-
@(Command("print-table").Description("Print a table of the cache status of each package"))
190+
@(Command("print-table", "print_table").Description("Print a table of the cache status of each package"))
191191
struct print_table_args
192192
{
193193
}

packages/mcl/src/src/mcl/commands/deploy_spec.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import mcl.utils.json : tryDeserializeFromJsonFile, writeJsonFile;
1616
import mcl.commands.ci_matrix : flakeAttr, params, nixEvalJobs, SupportedSystem;
1717

1818

19-
@(Command("deploy-spec").Description("Evaluate the Nixos machine configurations in bareMetalMachines and deploy them to cachix."))
19+
@(Command("deploy-spec", "deploy_spec").Description("Evaluate the Nixos machine configurations in bareMetalMachines and deploy them to cachix."))
2020
export struct deploy_spec_args {
2121
}
2222

packages/mcl/src/src/mcl/commands/get_fstab.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export int get_fstab(get_fstab_args args)
3232
return 0;
3333
}
3434

35-
@(Command("get-fstab").Description("Get the store path of the fstab file for a deployment"))
35+
@(Command("get-fstab", "get_fstab").Description("Get the store path of the fstab file for a deployment"))
3636
export struct get_fstab_args {
3737
@(NamedArgument(["cachix-auth-token"]).Required().Placeholder("XXX").Description("Auth Token for Cachix"))
3838
string cachixAuthToken;

packages/mcl/src/src/mcl/commands/host_info.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ string[string] getProcInfo(string fileOrData, bool file = true)
5959
return r;
6060
}
6161

62-
@(Command("host-info").Description("Get information about the host machine"))
62+
@(Command("host-info", "host_info").Description("Get information about the host machine"))
6363
struct host_info_args {}
6464

6565
export int host_info(host_info_args args)

packages/mcl/src/src/mcl/commands/shard_matrix.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import mcl.utils.json : toJSON;
2020
import mcl.utils.nix : nix;
2121
import mcl.utils.path : createResultDirs, resultDir, rootDir;
2222

23-
@(Command("shard-matrix").Description("Generate a shard matrix for a flake"))
23+
@(Command("shard-matrix", "shard_matrix").Description("Generate a shard matrix for a flake"))
2424
struct shard_matrix_args
2525
{
2626
@(NamedArgument(["github-output"]).Placeholder("output").Description("Output to GitHub Actions"))

0 commit comments

Comments
 (0)