root

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package root have reusable root commands for clis

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRootCommand

func NewRootCommand(ctx context.Context, name string, subcommands ...SubcommandFunc) *cobra.Command

NewRootCommand initiates all commands. This is the main entrypoint of the cli

Types

type SubcommandFunc

type SubcommandFunc func(ctx context.Context, name string) *cobra.Command

SubcommandFunc inits a subcommand to be inserted inside root

Jump to

Keyboard shortcuts

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