Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InitCommand = &command.Command{ Cmd: &cobra.Command{ Use: "init", Short: "Initialize a new configuration", }, Flags: &initFlag, Run: func( cmd *cobra.Command, args []string, globalFlags command.GlobalFlags, services *services.Services, ) (command.Result, error) { proj, err := services.Project.Init( initFlag.Reset, initFlag.ServiceKeySigAlgo, initFlag.ServiceKeyHashAlgo, initFlag.ServicePrivateKey, ) if err != nil { return nil, err } return &InitResult{proj}, nil }, }
Functions ¶
This section is empty.
Types ¶
type FlagsInit ¶
type FlagsInit struct {
ServicePrivateKey string `flag:"service-private-key" info:"Service account private key"`
ServiceKeySigAlgo string `default:"ECDSA_P256" flag:"service-sig-algo" info:"Service account key signature algorithm"`
ServiceKeyHashAlgo string `default:"SHA3_256" flag:"service-hash-algo" info:"Service account key hash algorithm"`
Reset bool `default:"false" flag:"reset" info:"Reset flow.json config file"`
}
type InitResult ¶
InitResult result structure
func (*InitResult) Oneliner ¶
func (r *InitResult) Oneliner() string
Oneliner show result as one liner grep friendly
Click to show internal directories.
Click to hide internal directories.