function

Execute

Run project commands or the framework-owned production server lifecycle.

Arguments

ArgumentTypeDescription
applicationConfigConfigThe application-owned executable configuration.
supplied[]ExecuteOptionRuntime options applied in argument order only when serving.

Returns

Command, startup, serving, or shutdown failure.

result error

How it works

When command-line arguments select a project command, Execute resolves config and returns without invoking store or storage factories. With no command it owns startup, readiness, serving, workers, drain, and resource close order.

Full signature

func Execute( applicationConfig Config, supplied ...ExecuteOption, ) (result error)

Source core/execute.go:131

Related types

  • Config

    Executable application-owned Ridu configuration.

  • ExecuteOption

    Opaque production lifecycle option accepted by Execute.