Skip to content

Commit

Permalink
Merge branch 'main' into gen-woodpecker-go
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys authored Nov 30, 2024
2 parents ad4f353 + 0f87ddc commit 5ab795b
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 39 deletions.
4 changes: 2 additions & 2 deletions cli/admin/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ var Command = &cli.Command{
Name: "admin",
Usage: "manage server settings",
Commands: []*cli.Command{
secret.Command,
loglevel.Command,
registry.Command,
secret.Command,
user.Command,
loglevel.Command,
},
}
4 changes: 2 additions & 2 deletions cli/admin/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ var Command = &cli.Command{
Commands: []*cli.Command{
registryCreateCmd,
registryDeleteCmd,
registryUpdateCmd,
registryShowCmd,
registryListCmd,
registryShowCmd,
registryUpdateCmd,
},
}
4 changes: 2 additions & 2 deletions cli/admin/secret/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ var Command = &cli.Command{
Commands: []*cli.Command{
secretCreateCmd,
secretDeleteCmd,
secretUpdateCmd,
secretShowCmd,
secretListCmd,
secretShowCmd,
secretUpdateCmd,
},
}
4 changes: 2 additions & 2 deletions cli/admin/user/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ var Command = &cli.Command{
Name: "user",
Usage: "manage users",
Commands: []*cli.Command{
userListCmd,
userShowCmd,
userAddCmd,
userListCmd,
userRemoveCmd,
userShowCmd,
},
}
4 changes: 2 additions & 2 deletions cli/org/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ var Command = &cli.Command{
Commands: []*cli.Command{
registryCreateCmd,
registryDeleteCmd,
registryUpdateCmd,
registryShowCmd,
registryListCmd,
registryShowCmd,
registryUpdateCmd,
},
}

Expand Down
4 changes: 2 additions & 2 deletions cli/org/secret/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ var Command = &cli.Command{
Commands: []*cli.Command{
secretCreateCmd,
secretDeleteCmd,
secretUpdateCmd,
secretShowCmd,
secretListCmd,
secretShowCmd,
secretUpdateCmd,
},
}

Expand Down
2 changes: 1 addition & 1 deletion cli/pipeline/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var Command = &cli.Command{
Name: "log",
Usage: "manage logs",
Commands: []*cli.Command{
logShowCmd,
logPurgeCmd,
logShowCmd,
},
}
18 changes: 9 additions & 9 deletions cli/pipeline/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@ var Command = &cli.Command{
Name: "pipeline",
Usage: "manage pipelines",
Commands: []*cli.Command{
buildPipelineListCmd(),
pipelineLastCmd,
pipelineShowCmd,
pipelineStopCmd,
pipelineStartCmd,
pipelineApproveCmd,
pipelineCreateCmd,
pipelineDeclineCmd,
pipelineQueueCmd,
deploy.Command,
pipelineKillCmd,
pipelinePsCmd,
pipelineCreateCmd,
pipelineLastCmd,
buildPipelineListCmd(),
log.Command,
deploy.Command,
pipelinePsCmd,
pipelinePurgeCmd,
pipelineQueueCmd,
pipelineShowCmd,
pipelineStartCmd,
pipelineStopCmd,
},
}

Expand Down
3 changes: 2 additions & 1 deletion cli/pipeline/purge.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ func pipelinePurge(c *cli.Command, client woodpecker.Client) (err error) {
}

for i, p := range pipelinesToPurge {
log.Debug().Msgf("%sprune %v/%v pipelines from repo '%v'", msgPrefix, i+1, len(pipelinesToPurge), repoIDOrFullName)
// cspell:words spurge
log.Debug().Msgf("%spurge %v/%v pipelines from repo '%v'", msgPrefix, i+1, len(pipelinesToPurge), repoIDOrFullName)
if dryRun {
continue
}
Expand Down
4 changes: 2 additions & 2 deletions cli/repo/cron/cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ var Command = &cli.Command{
Commands: []*cli.Command{
cronCreateCmd,
cronDeleteCmd,
cronUpdateCmd,
cronShowCmd,
cronListCmd,
cronShowCmd,
cronUpdateCmd,
},
}
4 changes: 2 additions & 2 deletions cli/repo/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ var Command = &cli.Command{
Commands: []*cli.Command{
registryCreateCmd,
registryDeleteCmd,
registryUpdateCmd,
registryShowCmd,
registryListCmd,
registryShowCmd,
registryUpdateCmd,
},
}

Expand Down
14 changes: 7 additions & 7 deletions cli/repo/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ var Command = &cli.Command{
Name: "repo",
Usage: "manage repositories",
Commands: []*cli.Command{
repoListCmd,
repoShowCmd,
repoAddCmd,
repoUpdateCmd,
repoRemoveCmd,
repoRepairCmd,
repoChownCmd,
repoSyncCmd,
cron.Command,
repoListCmd,
registry.Command,
repoRemoveCmd,
repoRepairCmd,
secret.Command,
cron.Command,
repoShowCmd,
repoSyncCmd,
repoUpdateCmd,
},
}
4 changes: 2 additions & 2 deletions cli/repo/secret/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ var Command = &cli.Command{
Commands: []*cli.Command{
secretCreateCmd,
secretDeleteCmd,
secretUpdateCmd,
secretShowCmd,
secretListCmd,
secretShowCmd,
secretUpdateCmd,
},
}

Expand Down
6 changes: 3 additions & 3 deletions cmd/cli/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit 5ab795b

Please sign in to comment.