From c221cdaba7cf6feb51b32ee30556f613badafa40 Mon Sep 17 00:00:00 2001 From: Nick Schmeller Date: Wed, 26 Oct 2022 17:21:40 -0400 Subject: [PATCH] style(cli): rename `aws-install` files (#985) i.e. `agent_install_ec2ic.go` should be renamed to `agent_aws-install_ec2ic.go` to reflect the name of the command `aws-install`. Also tweaks two comments to reflect this change. Fixes RAIN-39178 Signed-off-by: nschmeller --- cli/cmd/{agent_install_ec2ic.go => agent_aws-install_ec2ic.go} | 2 +- ...nt_install_ec2ic_test.go => agent_aws-install_ec2ic_test.go} | 0 .../{agent_install_ec2ssh.go => agent_aws-install_ec2ssh.go} | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename cli/cmd/{agent_install_ec2ic.go => agent_aws-install_ec2ic.go} (99%) rename cli/cmd/{agent_install_ec2ic_test.go => agent_aws-install_ec2ic_test.go} (100%) rename cli/cmd/{agent_install_ec2ssh.go => agent_aws-install_ec2ssh.go} (99%) diff --git a/cli/cmd/agent_install_ec2ic.go b/cli/cmd/agent_aws-install_ec2ic.go similarity index 99% rename from cli/cmd/agent_install_ec2ic.go rename to cli/cmd/agent_aws-install_ec2ic.go index d0fe5e6e2..aec4a419b 100644 --- a/cli/cmd/agent_install_ec2ic.go +++ b/cli/cmd/agent_aws-install_ec2ic.go @@ -62,7 +62,7 @@ This command will automatically add hosts with successful connections to ) func init() { - // 'agent install ec2ic' flags + // 'agent aws-install ec2ic' flags agentInstallAWSEC2ICCmd.Flags().StringVar(&agentCmdState.InstallTagKey, "tag_key", "", "only install agents on infra with this tag key set", ) diff --git a/cli/cmd/agent_install_ec2ic_test.go b/cli/cmd/agent_aws-install_ec2ic_test.go similarity index 100% rename from cli/cmd/agent_install_ec2ic_test.go rename to cli/cmd/agent_aws-install_ec2ic_test.go diff --git a/cli/cmd/agent_install_ec2ssh.go b/cli/cmd/agent_aws-install_ec2ssh.go similarity index 99% rename from cli/cmd/agent_install_ec2ssh.go rename to cli/cmd/agent_aws-install_ec2ssh.go index 7a7532e8c..9c413d7af 100644 --- a/cli/cmd/agent_install_ec2ssh.go +++ b/cli/cmd/agent_aws-install_ec2ssh.go @@ -71,7 +71,7 @@ This command will automatically add hosts with successful connections to ) func init() { - // 'agent install ec2ssh' flags + // 'agent aws-install ec2ssh' flags agentInstallAWSSSHCmd.Flags().StringVar(&agentCmdState.InstallTagKey, "tag_key", "", "only install agents on infra with this tag key", )