Documentation
¶
Index ¶
- Variables
- func Dbg(msg string, args ...any)
- func Error(msg string, args ...any)
- func Info(msg string, args ...any)
- func Notify(_, _ string)
- func Register(c *CLI, a *App)
- func RunLogView(opts LogViewOptions) error
- func Warn(msg string, args ...any)
- func Watch(ctx context.Context, dir string, opts WatchOptions, onChange func()) error
- type App
- func (a *App) BinFile() string
- func (a *App) Build(pkg string) error
- func (a *App) BuildAndStart(pkg string) (int, <-chan error, error)
- func (a *App) FindPkg(pkg string) (string, error)
- func (a *App) Kill()
- func (a *App) LogFile() string
- func (a *App) PidFile() string
- func (a *App) PidGlob() string
- func (a *App) ReadPid() (int, error)
- func (a *App) Start() (int, <-chan error, error)
- func (a *App) Stop() error
- type CLI
- type Command
- type Config
- type ConfigBuild
- type ConfigLogLevels
- type ConfigLogs
- type ConfigRun
- type ConfigTest
- type ConfigWatch
- type Flag
- type LogViewOptions
- type WatchOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var (
LogDebug bool
)
Functions ¶
func RunLogView ¶
func RunLogView(opts LogViewOptions) error
Types ¶
type App ¶
type CLI ¶
type Config ¶
type Config struct {
Build ConfigBuild `yaml:"build"`
Run ConfigRun `yaml:"run"`
Watch ConfigWatch `yaml:"watch"`
Test ConfigTest `yaml:"test"`
Logs ConfigLogs `yaml:"logs"`
Notify bool `yaml:"notify"`
}
func DefaultConfig ¶
func DefaultConfig() Config
func LoadConfig ¶
func (*Config) BuildCLIFlags ¶
func (*Config) RunCLIFlags ¶
func (*Config) TestCLIFlags ¶
type ConfigBuild ¶
type ConfigBuild struct {
CmdPattern string `yaml:"cmd_pattern"`
Flags []string `yaml:"flags"`
Race bool `yaml:"race"`
}
func (ConfigBuild) GoFlags ¶
func (b ConfigBuild) GoFlags() []string
func (ConfigBuild) Label ¶
func (b ConfigBuild) Label() string
type ConfigLogLevels ¶
type ConfigLogs ¶
type ConfigLogs struct {
Format string `yaml:"format"`
LevelField string `yaml:"level_field"`
LevelValues ConfigLogLevels `yaml:"level_values"`
HighlightFields []string `yaml:"highlight_fields"`
}
type ConfigTest ¶
type ConfigTest struct {
CoverProfile string `yaml:"cover_profile"`
}
type ConfigWatch ¶
type LogViewOptions ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.