cli

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGrafanaFlags

func AddGrafanaFlags(cmd *cobra.Command)

func AddStatesFlags

func AddStatesFlags(cmd *cobra.Command)

func GetVersion

func GetVersion() string

TODO move to /internal

Types

type GrafanaParams

type GrafanaParams struct {
	Ids        string
	GrafanaUrl string
	Folder     string
	Name       string
	Token      string
	Source     string
}

GrafanaParams are params for the grafana command.

func ParseGrafanaParams

func ParseGrafanaParams(cmd *cobra.Command, _ []string) GrafanaParams

type RootParams

type RootParams struct {
	// Version - print version
	Version bool
}

RootParams are params for the root command.

func ParseRootParams

func ParseRootParams(cmd *cobra.Command, _ []string) RootParams

type SFParams

type SFParams struct {
	// Version - print version
	Version bool
	// States - State names to generate. Eg: State1,State2
	States string
	// Inherit - Inherit from built-in states machines (comma separated):
	// - basic,connected
	// - rpc/worker
	// - node/worker
	Inherit string
	// Groups - Groups to generate. Eg: Group1,Group2
	Groups string
	// Name - Name of the state machine.
	Name string
	// Force - Overwrite existing files.
	Force bool
	// Utils - Generate states_utils.go in CWD. Overrides files.
	Utils bool
}

SFParams are params for the states-file command.

func ParseSFParams

func ParseSFParams(cmd *cobra.Command, _ []string) SFParams

Jump to

Keyboard shortcuts

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