cobrautils

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandSuiteUsage

func CommandSuiteUsage(cmd *cobra.Command, args []string) error

func ConfigureRootCmd

func ConfigureRootCmd(cmd *cobra.Command)

func ExactArgs

func ExactArgs(n int) cobra.PositionalArgs

func HandleErrors

func HandleErrors(err error)

func MaximumNArgs

func MaximumNArgs(n int) cobra.PositionalArgs

func MinimumNArgs

func MinimumNArgs(n int) cobra.PositionalArgs

func RangeArgs

func RangeArgs(min int, max int) cobra.PositionalArgs

Types

type UsageError

type UsageError struct {
	// contains filtered or unexported fields
}

func NewUsageError

func NewUsageError(cmd *cobra.Command, err error) UsageError

func (UsageError) Error

func (e UsageError) Error() string

Jump to

Keyboard shortcuts

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