package cli
Import Path
github.com/pancsta/asyncmachine-go/tools/generator/cli (on go.dev)
Dependency Relation
imports 5 packages, and imported by 3 packages
Involved Source Files
cli.go
Package-Level Type Names (total 3)
GrafanaParams are params for the grafana command.
Folder string
GrafanaUrl string
Ids string
Name string
Source string
Token string
func ParseGrafanaParams(cmd *cobra.Command, _ []string) GrafanaParams
func github.com/pancsta/asyncmachine-go/tools/generator.GenDashboard(p GrafanaParams) (*dashboard.Builder, error)
func github.com/pancsta/asyncmachine-go/tools/generator.SyncDashboard(ctx context.Context, p GrafanaParams, builder *dashboard.Builder) error
RootParams are params for the root command.
Version - print version
func ParseRootParams(cmd *cobra.Command, _ []string) RootParams
SFParams are params for the states-file command.
Force - Overwrite existing files.
Groups - Groups to generate. Eg: Group1,Group2
Inherit - Inherit from built-in states machines (comma separated):
- basic,connected
- rpc/worker
- node/worker
Name - Name of the state machine.
States - State names to generate. Eg: State1,State2
Utils - Generate states_utils.go in CWD. Overrides files.
Version - print version
func ParseSFParams(cmd *cobra.Command, _ []string) SFParams
func github.com/pancsta/asyncmachine-go/tools/generator.NewSchemaGenerator(ctx context.Context, param SFParams) (*generator.SchemaGenerator, error)
Package-Level Functions (total 6)
func AddGrafanaFlags(cmd *cobra.Command) func AddStatesFlags(cmd *cobra.Command)
TODO move to /internal
func ParseGrafanaParams(cmd *cobra.Command, _ []string) GrafanaParams func ParseRootParams(cmd *cobra.Command, _ []string) RootParams func ParseSFParams(cmd *cobra.Command, _ []string) SFParams![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |