v1.0.0
Golang lint / docker-smoke (push) Successful in 17s
Golang lint / lint (push) Failing after 18s

This commit is contained in:
2026-08-06 12:22:44 +03:00
parent a47ac72db0
commit bb2fa57bbe
21 changed files with 1075 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
package config
import (
"errors"
"github.com/spf13/pflag"
)
// Flags contains command-line options accepted by est.
type Flags struct {
ConfigPath string
}
// ParseFlags parses est command-line flags.
func ParseFlags() (*Flags, error) {
configPath := pflag.StringP("config", "c", "./config.toml", "toml config path")
pflag.Parse()
if configPath == nil {
return nil, errors.New("no config path")
}
return &Flags{ConfigPath: *configPath}, nil
}