package cli
Import Path
/tools/generator/cli (on go.dev)
Dependency Relation
imports 3 packages, and imported by 3 packages
Involved Source Files
cli.go
Package-Level Type Names (total 6)
Args is the top-level args struct for am-gen.
Grafana *GrafanaParams
Schema *SchemaParams
SchemaFile *SchemaFileParams
Starter *StarterParams
StatesFile *SchemaParams
Version bool
Description returns the formatted CLI description and examples.
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
SchemaFileParams are params for the schema-yaml subcommand.
File - Path to YAML schema file.
internal
SchemaParamsCommon SchemaParamsCommon
Force - Overwrite existing files.
Global - Import pkg/states/global and skip generating states_utils.go.
Group - Group to generate (repeatable). Eg: --group Group1 --group Group2
Groups - Groups to generate. Eg: Group1,Group2
Inherit - Inherit from built-in states machines (comma separated or repeatable):
- basic,connected
- rpc/statesrc
- node/worker
Name - Name of the state machine.
Output - Print output to stdout instead of writing to a file.
Utils - Generate states_utils.go in CWD. Overrides files.
Version - print version
func github.com/pancsta/asyncmachine-go/tools/generator.SchemaFileToParams(params SchemaFileParams) (SchemaParams, error)
SchemaParams are params for the states-file subcommand.
SchemaParamsCommon SchemaParamsCommon
Force - Overwrite existing files.
Global - Import pkg/states/global and skip generating states_utils.go.
Group - Group to generate (repeatable). Eg: --group Group1 --group Group2
Groups - Groups to generate. Eg: Group1,Group2
Inherit - Inherit from built-in states machines (comma separated or repeatable):
- basic,connected
- rpc/statesrc
- node/worker
Name - Name of the state machine.
Output - Print output to stdout instead of writing to a file.
Utils - Generate states_utils.go in CWD. Overrides files.
Version - print version
State - State name to generate (repeatable). Eg: --state State1 --state State2:multi
States - State names to generate. Eg: State1,State2
func github.com/pancsta/asyncmachine-go/tools/generator.SchemaFileToParams(params SchemaFileParams) (SchemaParams, error)
func github.com/pancsta/asyncmachine-go/tools/generator.NewSchemaGenerator(ctx context.Context, param SchemaParams) (*generator.SchemaGenerator, error)
Force - Overwrite existing files.
Global - Import pkg/states/global and skip generating states_utils.go.
Group - Group to generate (repeatable). Eg: --group Group1 --group Group2
Groups - Groups to generate. Eg: Group1,Group2
Inherit - Inherit from built-in states machines (comma separated or repeatable):
- basic,connected
- rpc/statesrc
- node/worker
Name - Name of the state machine.
Output - Print output to stdout instead of writing to a file.
Utils - Generate states_utils.go in CWD. Overrides files.
Version - print version
Args bool
File - Path to YAML schema file.
internal
Force bool
Handlers bool
Inherit []string
Module bool
Name string
Path string
Uri string
func github.com/pancsta/asyncmachine-go/tools/generator.GenStarterFiles(ctx context.Context, params StarterParams) (map[string]string, error)
func github.com/pancsta/asyncmachine-go/tools/generator.GenStarterKit(ctx context.Context, params *StarterParams) error
Package-Level Variables (only one)
TODO enum, merge with schema.go
![]() |
The pages are generated with Golds v0.8.4. (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. |