Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "info cid", Short: "Get information about the current storage state of a cid", Long: `Get information about the current storage state of a cid`, Args: cobra.ExactArgs(1), PreRun: func(cmd *cobra.Command, args []string) { err := viper.BindPFlags(cmd.Flags()) c.CheckErr(err) }, Run: func(cmd *cobra.Command, args []string) { ctx, cancel := context.WithTimeout(context.Background(), c.CmdTimeout) defer cancel() res, err := c.PowClient.Data.CidInfo(c.MustAuthCtx(ctx), args[0]) c.CheckErr(err) json, err := protojson.MarshalOptions{Multiline: true, Indent: " ", EmitUnpopulated: true}.Marshal(res) c.CheckErr(err) fmt.Println(string(json)) }, }
Cmd is the command.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.