milestone

package
v0.1.114 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2026 License: AGPL-3.0 Imports: 21 Imported by: 0

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

func Register

func Register(parent *cobra.Command, f *config.Flags)

Register attaches the milestone umbrella command and all of its subcommands to parent, wiring in the shared flag struct.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL