MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / NewSshCommonOpts

Function NewSshCommonOpts

pkg/machinescommon/ssh_common.go:62–69  ·  view source on GitHub ↗
(dependencies *cmd.Dependencies)

Source from the content-addressed store, hash-verified

60}
61
62func NewSshCommonOpts(dependencies *cmd.Dependencies) *SshCommonOptions {
63 return &SshCommonOptions{
64 Dependencies: dependencies,
65 GetAllAccountsForSshMachine: func() ([]accounts.IAccount, error) {
66 return getAllAccountsForSshMachine(dependencies.Client)
67 },
68 }
69}
70
71func RegisterSshCommonFlags(cmd *cobra.Command, flags *SshCommonFlags, entityType string) {
72 cmd.Flags().StringVar(&flags.Account.Value, flags.Account.Name, "", "The name or ID of the SSH key pair or username/password account")

Calls 1