diff --git a/cmd/ctrlc/root/api/create/releasechannel/release-channel.go b/cmd/ctrlc/root/api/create/releasechannel/release-channel.go index fcc6f23..3dfffdd 100644 --- a/cmd/ctrlc/root/api/create/releasechannel/release-channel.go +++ b/cmd/ctrlc/root/api/create/releasechannel/release-channel.go @@ -44,9 +44,9 @@ func NewReleaseChannelCmd() *cobra.Command { } resp, err := client.CreateReleaseChannel(cmd.Context(), api.CreateReleaseChannelJSONRequestBody{ - Name: name, - DeploymentId: deploymentID, - Description: &description, + Name: name, + DeploymentId: deploymentID, + Description: &description, ReleaseFilter: releaseFilter, }) if err != nil { diff --git a/cmd/ctrlc/root/api/delete/environment/environment.go b/cmd/ctrlc/root/api/delete/environment/environment.go index e2f9407..7069551 100644 --- a/cmd/ctrlc/root/api/delete/environment/environment.go +++ b/cmd/ctrlc/root/api/delete/environment/environment.go @@ -45,7 +45,7 @@ func NewDeleteEnvironmentCmd() *cobra.Command { if err != nil { return fmt.Errorf("failed to delete environment API client: %w", err) } - + if environmentId != "" { resp, err := client.DeleteEnvironment(cmd.Context(), environmentId) if err != nil { diff --git a/pkg/agent/options.go b/pkg/agent/options.go index ec2681a..d546bc8 100644 --- a/pkg/agent/options.go +++ b/pkg/agent/options.go @@ -12,7 +12,6 @@ func WithHeader(key string, value string) func(*Agent) { } } - func WithAssociatedResources(resources []string) func(*Agent) { return func(a *Agent) { a.associatedResources = resources diff --git a/pkg/payloads/agent_heartbeat_generated.go b/pkg/payloads/agent_heartbeat_generated.go index 78cb9c5..f305286 100644 --- a/pkg/payloads/agent_heartbeat_generated.go +++ b/pkg/payloads/agent_heartbeat_generated.go @@ -6,7 +6,6 @@ import "encoding/json" import "fmt" import "reflect" - type AgentHeartbeatJson struct { // Timestamp of the heartbeat Timestamp string `json:"timestamp" yaml:"timestamp" mapstructure:"timestamp"`