From 0f87ddc0578f27a4b89395fbc84729e2cf0b93bf Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Sat, 30 Nov 2024 20:11:57 +0200 Subject: [PATCH] Sort cli commands alphabetically (#4489) Co-authored-by: Robert Kaussow --- cli/admin/admin.go | 6 +++--- cli/admin/registry/registry.go | 4 ++-- cli/admin/secret/secret.go | 4 ++-- cli/admin/user/user.go | 4 ++-- cli/org/registry/registry.go | 4 ++-- cli/org/secret/secret.go | 4 ++-- cli/pipeline/log/log.go | 2 +- cli/pipeline/pipeline.go | 20 ++++++++++---------- cli/repo/cron/cron.go | 4 ++-- cli/repo/registry/registry.go | 4 ++-- cli/repo/repo.go | 14 +++++++------- cli/repo/secret/secret.go | 4 ++-- cmd/cli/app.go | 6 +++--- 13 files changed, 40 insertions(+), 40 deletions(-) diff --git a/cli/admin/admin.go b/cli/admin/admin.go index f96c5fd0b..f99b79f0f 100644 --- a/cli/admin/admin.go +++ b/cli/admin/admin.go @@ -28,9 +28,9 @@ var Command = &cli.Command{ Name: "admin", Usage: "manage server settings", Commands: []*cli.Command{ - secret.Command, - registry.Command, - user.Command, loglevel.Command, + registry.Command, + secret.Command, + user.Command, }, } diff --git a/cli/admin/registry/registry.go b/cli/admin/registry/registry.go index 1717803c6..7055c2873 100644 --- a/cli/admin/registry/registry.go +++ b/cli/admin/registry/registry.go @@ -25,8 +25,8 @@ var Command = &cli.Command{ Commands: []*cli.Command{ registryCreateCmd, registryDeleteCmd, - registryUpdateCmd, - registryShowCmd, registryListCmd, + registryShowCmd, + registryUpdateCmd, }, } diff --git a/cli/admin/secret/secret.go b/cli/admin/secret/secret.go index b3496b076..da805a98e 100644 --- a/cli/admin/secret/secret.go +++ b/cli/admin/secret/secret.go @@ -25,8 +25,8 @@ var Command = &cli.Command{ Commands: []*cli.Command{ secretCreateCmd, secretDeleteCmd, - secretUpdateCmd, - secretShowCmd, secretListCmd, + secretShowCmd, + secretUpdateCmd, }, } diff --git a/cli/admin/user/user.go b/cli/admin/user/user.go index fe68e5d47..29951a635 100644 --- a/cli/admin/user/user.go +++ b/cli/admin/user/user.go @@ -23,9 +23,9 @@ var Command = &cli.Command{ Name: "user", Usage: "manage users", Commands: []*cli.Command{ - userListCmd, - userShowCmd, userAddCmd, + userListCmd, userRemoveCmd, + userShowCmd, }, } diff --git a/cli/org/registry/registry.go b/cli/org/registry/registry.go index ed8051bd9..38ca0454e 100644 --- a/cli/org/registry/registry.go +++ b/cli/org/registry/registry.go @@ -29,9 +29,9 @@ var Command = &cli.Command{ Commands: []*cli.Command{ registryCreateCmd, registryDeleteCmd, - registryUpdateCmd, - registryShowCmd, registryListCmd, + registryShowCmd, + registryUpdateCmd, }, } diff --git a/cli/org/secret/secret.go b/cli/org/secret/secret.go index 21579993b..b50880c91 100644 --- a/cli/org/secret/secret.go +++ b/cli/org/secret/secret.go @@ -29,9 +29,9 @@ var Command = &cli.Command{ Commands: []*cli.Command{ secretCreateCmd, secretDeleteCmd, - secretUpdateCmd, - secretShowCmd, secretListCmd, + secretShowCmd, + secretUpdateCmd, }, } diff --git a/cli/pipeline/log/log.go b/cli/pipeline/log/log.go index 4ea569d79..4227288dc 100644 --- a/cli/pipeline/log/log.go +++ b/cli/pipeline/log/log.go @@ -23,7 +23,7 @@ var Command = &cli.Command{ Name: "log", Usage: "manage logs", Commands: []*cli.Command{ - logShowCmd, logPurgeCmd, + logShowCmd, }, } diff --git a/cli/pipeline/pipeline.go b/cli/pipeline/pipeline.go index 454e7064d..cc86ddf07 100644 --- a/cli/pipeline/pipeline.go +++ b/cli/pipeline/pipeline.go @@ -33,20 +33,20 @@ var Command = &cli.Command{ Name: "pipeline", Usage: "manage pipelines", Commands: []*cli.Command{ - buildPipelineListCmd(), - pipelineLastCmd, - pipelineShowCmd, - pipelineStopCmd, - pipelineStartCmd, pipelineApproveCmd, - pipelineDeclineCmd, - pipelineQueueCmd, - pipelineKillCmd, - pipelinePsCmd, pipelineCreateCmd, - log.Command, + pipelineDeclineCmd, deploy.Command, + pipelineKillCmd, + pipelineLastCmd, + buildPipelineListCmd(), + log.Command, + pipelinePsCmd, pipelinePurgeCmd, + pipelineQueueCmd, + pipelineShowCmd, + pipelineStartCmd, + pipelineStopCmd, }, } diff --git a/cli/repo/cron/cron.go b/cli/repo/cron/cron.go index 364813876..90edf8f9c 100644 --- a/cli/repo/cron/cron.go +++ b/cli/repo/cron/cron.go @@ -25,8 +25,8 @@ var Command = &cli.Command{ Commands: []*cli.Command{ cronCreateCmd, cronDeleteCmd, - cronUpdateCmd, - cronShowCmd, cronListCmd, + cronShowCmd, + cronUpdateCmd, }, } diff --git a/cli/repo/registry/registry.go b/cli/repo/registry/registry.go index 98b4ef84a..ab362934a 100644 --- a/cli/repo/registry/registry.go +++ b/cli/repo/registry/registry.go @@ -28,9 +28,9 @@ var Command = &cli.Command{ Commands: []*cli.Command{ registryCreateCmd, registryDeleteCmd, - registryUpdateCmd, - registryShowCmd, registryListCmd, + registryShowCmd, + registryUpdateCmd, }, } diff --git a/cli/repo/repo.go b/cli/repo/repo.go index e9467694c..8bb3b612a 100644 --- a/cli/repo/repo.go +++ b/cli/repo/repo.go @@ -27,16 +27,16 @@ var Command = &cli.Command{ Name: "repo", Usage: "manage repositories", Commands: []*cli.Command{ - repoListCmd, - repoShowCmd, repoAddCmd, - repoUpdateCmd, + repoChownCmd, + cron.Command, + repoListCmd, + registry.Command, repoRemoveCmd, repoRepairCmd, - repoChownCmd, - repoSyncCmd, - registry.Command, secret.Command, - cron.Command, + repoShowCmd, + repoSyncCmd, + repoUpdateCmd, }, } diff --git a/cli/repo/secret/secret.go b/cli/repo/secret/secret.go index 3284539d3..2d5d965e6 100644 --- a/cli/repo/secret/secret.go +++ b/cli/repo/secret/secret.go @@ -28,9 +28,9 @@ var Command = &cli.Command{ Commands: []*cli.Command{ secretCreateCmd, secretDeleteCmd, - secretUpdateCmd, - secretShowCmd, secretListCmd, + secretShowCmd, + secretUpdateCmd, }, } diff --git a/cmd/cli/app.go b/cmd/cli/app.go index 347513b1c..2784b08a3 100644 --- a/cmd/cli/app.go +++ b/cmd/cli/app.go @@ -43,12 +43,12 @@ func newApp() *cli.Command { app.Suggest = true app.Commands = []*cli.Command{ admin.Command, - org.Command, - repo.Command, - pipeline.Command, exec.Command, info.Command, lint.Command, + org.Command, + pipeline.Command, + repo.Command, setup.Command, update.Command, }