Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "rm", Aliases: []string{"delete"}, Short: "Remove a record by DID", RunE: func(cmd *cobra.Command, args []string) error { did := strings.TrimSpace(rmDID) if did == "" { return fmt.Errorf("--did is required") } serverURL, err := cmd.Flags().GetString("server") if err != nil { return fmt.Errorf("get server flag: %w", err) } c, err := syclient.New(serverURL) if err != nil { return err } if err := c.Index().Delete(cmd.Context(), did); err != nil { return err } fmt.Fprintf(cmd.OutOrStdout(), "removed %s\n", did) return nil }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.