Documentation
¶
Overview ¶
Package milestone implements the `polycli heimdall milestone` umbrella command (alias `ms`) and its subcommands targeting Heimdall v2's `x/milestone` module: params, count, latest, get.
Per HEIMDALLCAST_REQUIREMENTS.md §3.2.3 these endpoints live under a single umbrella rather than at the top level. The umbrella also accepts a bare integer (`milestone 11602043`) as a shorthand for `milestone get 11602043`.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MilestoneCmd = &cobra.Command{ Use: "milestone [NUMBER]", Aliases: []string{"ms"}, Short: "Query milestone module endpoints.", Long: usage, Args: cobra.MaximumNArgs(1), RunE: func(cmd *cobra.Command, args []string) error { if len(args) == 0 { return cmd.Help() } if _, err := strconv.ParseUint(args[0], 10, 64); err != nil { return &client.UsageError{Msg: fmt.Sprintf("unknown milestone subcommand or number %q", args[0])} } return runGet(cmd, args[0]) }, }
MilestoneCmd is the umbrella `milestone` command. Subcommands are attached by Register.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.