Documentation
¶
Index ¶
Constants ¶
const ( // Version version Version = "1.0.0" // HomePage homepage HomePage = "https://github.com/qeesung/asciiplayer" // Author author Author = "qeesung" // ShortTitle shortTitle ShortTitle = "asciiplayer/" + Version + " _(>.ო.<)_ _(>.ო.<)_ _(>.ო.<)_" // Title title Title = `` /* 326-byte string literal not displayed */ // SummaryTitle summary title SummaryTitle = Title + "\n>>>Version : " + Version + "\n>>>Author : " + Author + "\n>>>HomePage : " + HomePage )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cli ¶
type Cli struct {
// contains filtered or unexported fields
}
Cli is wrapper for root command and add common options
func (*Cli) AddCommand ¶
AddCommand add a child command to parent command
type CommandBuilder ¶
type CommandBuilder struct { }
CommandBuilder responsible for building root command and register all sub commands to the root command
func (*CommandBuilder) Build ¶
func (builder *CommandBuilder) Build() *Cli
Build create root command and register all sub command and return the cli object that contain the root command
type EncodeCommand ¶
type EncodeCommand struct { convert.Options Delay float64 FontSize int BackGroundColor string ForeGroundColor string OutputFilename string // contains filtered or unexported fields }
EncodeCommand is responsible for encoding
func (*EncodeCommand) Init ¶
func (encodeCommand *EncodeCommand) Init()
Init for encode command create a command and add flags
type ExitError ¶
ExitError implement the Error interface and add some custom error code nad error message
type PlayCommand ¶
PlayCommand responsible for playing the ASCII image in the terminal
func (*PlayCommand) Init ¶
func (playCommand *PlayCommand) Init()
Init for play command create a play command and add flags
type ServerCommand ¶
type ServerCommand struct { convert.Options Delay float64 Host string Port string // contains filtered or unexported fields }
ServerCommand define the server command that responsible for serving a http server for ASCII image.
func (*ServerCommand) Init ¶
func (serverCommand *ServerCommand) Init()
Init for ServerCommand create the server command
type VersionCommand ¶
type VersionCommand struct {
// contains filtered or unexported fields
}
VersionCommand is responsible show the version
func (*VersionCommand) Init ¶
func (versionCommand *VersionCommand) Init()
Init for VersionCommand create a version command