(cmd *cobra.Command, args []string)
| 136 | } |
| 137 | |
| 138 | func secretListRun(cmd *cobra.Command, args []string) (rtnErr error) { |
| 139 | defer func() { |
| 140 | sendActivity("secret", rtnErr == nil) |
| 141 | }() |
| 142 | |
| 143 | names, err := wshclient.GetSecretsNamesCommand(RpcClient, &wshrpc.RpcOpts{Timeout: 2000}) |
| 144 | if err != nil { |
| 145 | return fmt.Errorf("listing secrets: %w", err) |
| 146 | } |
| 147 | |
| 148 | for _, name := range names { |
| 149 | WriteStdout("%s\n", name) |
| 150 | } |
| 151 | return nil |
| 152 | } |
| 153 | |
| 154 | func secretDeleteRun(cmd *cobra.Command, args []string) (rtnErr error) { |
| 155 | defer func() { |
nothing calls this directly
no test coverage detected