{"modulePath":"github.com/answerdev/answer","version":"v1.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cli\n\n## Constants\n\n```go\nconst (\n\tDefaultConfigFileName                  = \"config.yaml\"\n\tDefaultCacheFileName                   = \"cache.db\"\n\tDefaultReservedUsernamesConfigFileName = \"reserved-usernames.json\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\tConfigFileDir  = \"/conf/\"\n\tUploadFilePath = \"/uploads/\"\n\tI18nPath       = \"/i18n/\"\n\tCacheDir       = \"/cache/\"\n)\n```\n\n## Functions\n\n```go\nfunc BuildNewAnswer(outputPath string, plugins []string, originalAnswerInfo OriginalAnswerInfo) (err error)\n```\nBuildNewAnswer builds a new answer with specified plugins\n\n```go\nfunc CheckConfigFile(configPath string) bool\n```\n\n```go\nfunc CheckDBConnection(dataConf *data.Database) bool\n```\nCheckDBConnection check database whether the connection is normal\n\n```go\nfunc CheckDBTableExist(dataConf *data.Database) bool\n```\nCheckDBTableExist check database whether the table is already exists\n\n```go\nfunc CheckUploadDir() bool\n```\n\n```go\nfunc DumpAllData(dataConf *data.Database, dumpDataPath string) error\n```\nDumpAllData dump all database data to sql\n\n```go\nfunc FormatAllPath(dataDirPath string)\n```\n\n```go\nfunc GetConfigFilePath() string\n```\nGetConfigFilePath get config file path\n\n```go\nfunc InstallAllInitialEnvironment(dataDirPath string)\n```\nInstallAllInitialEnvironment install all initial environment\n\n```go\nfunc InstallConfigFile(configFilePath string) error\n```\n\n```go\nfunc InstallI18nBundle(replace bool)\n```\n\n## Types\n\n```go\ntype OriginalAnswerInfo struct {\n\tVersion  string\n\tRevision string\n\tTime     string\n}\n```\n\n","path":"github.com/answerdev/answer/internal/cli","name":"cli","synopsis":"","isRedistributable":true}
