github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/tm2/pkg/commands/empty.go (about) 1 package commands 2 3 import "flag" 4 5 // EmptyConfig is an empty command configuration 6 // that should be substituted in commands that require one 7 type EmptyConfig struct{} 8 9 // NewEmptyConfig creates a new instance of the empty configuration 10 func NewEmptyConfig() *EmptyConfig { 11 return &EmptyConfig{} 12 } 13 14 // RegisterFlags ignores flag set registration 15 func (ec *EmptyConfig) RegisterFlags(_ *flag.FlagSet) {}