package cli
Import Path
/tools/generator/cli (on go.dev)
Dependency Relation
imports 2 packages, and imported by 3 packages
Involved Source Files
cli.go
Package-Level Type Names (total 3)
Args is the top-level args struct for am-gen.
Grafana *GrafanaParams
StatesFile *StatesParams
Version bool
TODO dedicated descriptions
Args : github.com/alexflint/go-arg.Described
GrafanaParams are params for the grafana subcommand.
Folder string
GrafanaUrl string
Ids string
Name string
Source string
Token string
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
StatesParams are params for the states-file subcommand.
Force - Overwrite existing files.
Groups - Groups to generate. Eg: Group1,Group2
Inherit - Inherit from built-in states machines (comma separated):
- basic,connected
- rpc/statesrc
- 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 github.com/pancsta/asyncmachine-go/tools/generator.NewSchemaGenerator(ctx context.Context, param StatesParams) (*generator.SchemaGenerator, error)
![]() |
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. |