Documentation
¶
Overview ¶
Package app provides the Run function suitable for executing within func main. This package also defines the current version of Toki.
Index ¶
Constants ¶
View Source
const MainBundleFileGo = "bundle_gen.go"
View Source
const Version = "0.8.3"
Variables ¶
View Source
var ( ErrGenerateBundleFirst = errors.New("first generate a bundle using `toki generate`") ErrSourceErrors = errors.New("source code contains errors") ErrNoCommand = errors.New("no command") ErrUnknownCommand = errors.New("unknown command") ErrAnalyzingSource = errors.New("analyzing sources") ErrInvalidCLIArgs = errors.New("invalid arguments") ErrMissingLocaleParam = errors.New( "please provide a valid non-und BCP 47 locale for the default language of your " + "original code base using the 'l' parameter", ) ErrBundleIncomplete = errors.New("bundle contains incomplete catalogs") )
Functions ¶
This section is empty.
Types ¶
type Generate ¶
type Generate struct {
// contains filtered or unexported fields
}
Generate implements both the `toki generate` and the `toki lint` commands.
type Result ¶
type Result struct {
Config *config.ConfigGenerate
Start time.Time
Scan *codeparse.Scan
NewTexts []codeparse.Text
RemovedTexts []codeparse.Text
Err error
}
type ResultJSON ¶
type ResultJSON struct {
Error string `json:"error,omitempty"`
StringCalls int64 `json:"string-calls"`
WriteCalls int64 `json:"write-calls"`
TIKs int `json:"tiks"`
TIKsUnique int `json:"tiks-unique"`
TIKsNew int `json:"tiks-new"`
FilesTraversed int `json:"files-traversed"`
SourceErrors []ResultJSONSourceError `json:"source-errors,omitempty"`
TimeMS int64 `json:"time-ms"`
Catalogs []ResultJSONCatalog `json:"catalogs"`
}
type ResultJSONCatalog ¶
type ResultJSONSourceError ¶
Click to show internal directories.
Click to hide internal directories.