Documentation ¶
Index ¶
Constants ¶
View Source
const ( FlagConfig = "config" FlagCount = "count" FlagWordlist = "wordlist" FlagTemplate = "template" FlagProfile = "profile" )
Variables ¶
View Source
var ErrProfileNotFound = errors.New("profile not found")
Functions ¶
func GetFilePretty ¶
Types ¶
type Config ¶
type Config struct { File string `toml:"-"` Count int `toml:"count" comment:"Number of passphrases to generate."` Profile ProfileRef `toml:"profile" comment:"Default profile used to generate passphrases."` Param any `toml:"-"` Profiles ProfileMap `toml:"profiles" comment:"Preconfigured profiles and default parameters."` Wordlist wordlist.Meta `toml:"wordlist" comment:"Wordlist to use. (one of: long, short1, short2)"` Template string `toml:"template" comment:"Default template used to generate passphrases. If not empty, will override the default profile." ` }
func (*Config) RegisterFlags ¶ added in v0.5.0
type NamedProfile ¶ added in v0.4.0
type ProfileMap ¶ added in v0.4.0
func (ProfileMap) Named ¶ added in v0.4.0
func (p ProfileMap) Named() []NamedProfile
type ProfileRef ¶ added in v0.2.0
func (*ProfileRef) MarshalText ¶ added in v0.2.0
func (p *ProfileRef) MarshalText() ([]byte, error)
func (*ProfileRef) UnmarshalText ¶ added in v0.2.0
func (p *ProfileRef) UnmarshalText(text []byte) error
type TOMLParser ¶
type TOMLParser struct{}
Click to show internal directories.
Click to hide internal directories.