- internal/cmdutil/cmdutil.go (new): shared CLI adapter helpers for the
core.Command registration path
- cmd/build/{cmd_build,cmd_apple,cmd_release,cmd_workflow}.go +
cmd/ci/ci.go + cmd/sdk/cmd.go: migrated from Cobra-style
cli.NewCommand/StringFlag to core.Command registration with
core.Options.String/Int/Bool
- pkg/api/provider.go: POST /release/workflow accepts empty JSON body
but correctly rejects malformed JSON with 400
- pkg/api/provider_test.go: regression for the new behaviour
Co-Authored-By: Virgil <virgil@lethean.io>
20 lines
367 B
Go
20 lines
367 B
Go
// Package ci registers release lifecycle commands.
|
|
//
|
|
// ci.AddCICommands(root)
|
|
package ci
|
|
|
|
import (
|
|
"dappco.re/go/core"
|
|
"dappco.re/go/core/cli/pkg/cli"
|
|
)
|
|
|
|
func init() {
|
|
cli.RegisterCommands(AddCICommands)
|
|
}
|
|
|
|
// AddCICommands registers the 'ci' command and all subcommands.
|
|
//
|
|
// ci.AddCICommands(root)
|
|
func AddCICommands(c *core.Core) {
|
|
registerCICommands(c)
|
|
}
|