MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / secretListRun

Function secretListRun

cmd/wsh/cmd/wshcmd-secret.go:138–152  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

136}
137
138func 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
154func secretDeleteRun(cmd *cobra.Command, args []string) (rtnErr error) {
155 defer func() {

Callers

nothing calls this directly

Calls 3

GetSecretsNamesCommandFunction · 0.92
sendActivityFunction · 0.85
WriteStdoutFunction · 0.85

Tested by

no test coverage detected