diff --git a/cmd/smd/component/get.go b/cmd/smd/component/get.go index d0c8e422..4617fd5d 100644 --- a/cmd/smd/component/get.go +++ b/cmd/smd/component/get.go @@ -22,9 +22,10 @@ import ( func newCmdComponentGet() *cobra.Command { // componentGetCmd represents the "smd component get" command var componentGetCmd = &cobra.Command{ - Use: "get", - Args: cobra.NoArgs, - Short: "Get all components or component identified by an xname or node ID", + Use: "get", + Aliases: []string{"list"}, + Args: cobra.NoArgs, + Short: "Get all components or component identified by an xname or node ID", Long: `Get all components or component by an xname or node ID. See ochami-smd(1) for more details.`, diff --git a/cmd/smd/rfe/get.go b/cmd/smd/rfe/get.go index f49df7a2..743036b5 100644 --- a/cmd/smd/rfe/get.go +++ b/cmd/smd/rfe/get.go @@ -23,9 +23,10 @@ import ( func newCmdRfeGet() *cobra.Command { // rfeGetCmd represents the "smd rfe get" command var rfeGetCmd = &cobra.Command{ - Use: "get", - Args: cobra.NoArgs, - Short: "Get all redfish endpoints or some based on filter(s)", + Use: "get", + Aliases: []string{"list"}, + Args: cobra.NoArgs, + Short: "Get all redfish endpoints or some based on filter(s)", Long: `Get all redfish endpoints or some based on filter(s). If no options are passed, all redfish endpoints are returned. Optionally, options can be passed to limit the redfish endpoints returned. diff --git a/man/ochami-smd.1.sc b/man/ochami-smd.1.sc index 4b039f34..261938ce 100644 --- a/man/ochami-smd.1.sc +++ b/man/ochami-smd.1.sc @@ -411,7 +411,7 @@ Subcommands for this command are as follows: - _yaml_ *get* [-F _format_] [--nid _nid_] [--xname _xname_] - Get all components or one identified by xname or node ID. + Get all components or one identified by xname or node ID. Note: `list` is an available alias for this command. If no filter flags are passed, all components are returned. Otherwise, the component specified by the passed filter flag(s) is returned. @@ -534,7 +534,7 @@ Subcommands for this command are as follows: Do not ask the user to confirm deletion. *get* [-F _format_] [--fqdn _fqdn_,...] [-i _ip_,...] [-m _mac_,...] [--type _type_,...] [--uuid _uuid_,...] [-x _xname_,...] - Get all Redfish endpoints or filter by various attributes. + Get all Redfish endpoints or filter by various attributes. Note: `list` is an available alias for this command. If no filter flags are passed, all Redfish endpoints are returned. Otherwise, only the endpoint(s) matching the specified filter criteria are