{"modulePath":"github.com/webdevops/go-devtool","version":"v0.0.0-20171030143155-bede15303381","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package command\n\n## Variables\n\n```go\nvar (\n\tLogger *logger.Logger\n)\n```\n\n## Functions\n\n```go\nfunc GetCompressionByFilename(file string) string\n```\n\n```go\nfunc NewSigIntHandler(callback func()) func()\n```\n\n## Types\n\n```go\ntype FileStubs struct {\n\tPositional struct {\n\t\tSourceFile string `description:\"Source file\"`\n\t} `positional-args:\"true\"`\n\tRootPath    string `long:\"path\"                  description:\"Prefix path for stub files\"`\n\tSourceStdin bool   `long:\"stdin\"                 description:\"Use stdin as file list source\"`\n\tForce       bool   `short:\"f\"  long:\"force\"      description:\"Overwrite existing files\"`\n}\n```\n\n```go\nfunc (conf *FileStubs) Execute(args []string) error\n```\n\n```go\nfunc (conf *FileStubs) GetRootPath() (string, error)\n```\n\n```go\ntype MysqlCommonOptions struct {\n\tSSH          string `long:\"ssh\"`\n\tDocker       string `long:\"docker\"`\n\tMysql        string `long:\"mysql\"`\n\tMysqlOptions struct {\n\t\tHostname string `long:\"hostname\"`\n\t\tPort     string `long:\"port\"`\n\t\tUsername string `long:\"user\"`\n\t\tPassword string `long:\"password\"`\n\t} `group:\"mysql\" namespace:\"mysql\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (conf *MysqlCommonOptions) ExecQuery(database string, statement string) xmlMysqlQueryResult\n```\n\n```go\nfunc (conf *MysqlCommonOptions) ExecStatement(database string, statement string) string\n```\n\n```go\nfunc (conf *MysqlCommonOptions) GetTableList(database string) []string\n```\n\n```go\nfunc (conf *MysqlCommonOptions) Init() error\n```\n\n```go\nfunc (conf *MysqlCommonOptions) InitDockerSettings()\n```\n\n```go\nfunc (conf *MysqlCommonOptions) MysqlCommandBuilder(args ...string) []interface{}\n```\n\n```go\nfunc (conf *MysqlCommonOptions) MysqlDumpCommandBuilder(args ...string) []interface{}\n```\n\n```go\nfunc (conf *MysqlCommonOptions) MysqlInteractiveCommandBuilder(args ...string) []interface{}\n```\n\n```go\nfunc (conf *MysqlCommonOptions) MysqlRestoreCommandBuilder(args ...string) []interface{}\n```\n\n```go\ntype MysqlConvert struct {\n\tOptions    MysqlCommonOptions `group:\"common\"`\n\tPositional struct {\n\t\tDatabase string `description:\"Database\" required:\"true\"`\n\t} `positional-args:\"true\"`\n\tCharset   string `long:\"charset\"      description:\"MySQL charset\"               default:\"utf8mb4\"`\n\tCollation string `long:\"collation\"    description:\"MySQL collation\"             default:\"utf8mb4_unicode_ci\"`\n}\n```\n\n```go\nfunc (conf *MysqlConvert) Execute(args []string) error\n```\n\n```go\ntype MysqlDbDump struct {\n\tOptions    MysqlCommonOptions `group:\"common\"`\n\tPositional struct {\n\t\tDatabase string `description:\"Database\" required:\"1\"`\n\t\tFilename string `description:\"Backup filename\" required:\"1\"`\n\t} `positional-args:\"true\"`\n}\n```\n\n```go\nfunc (conf *MysqlDbDump) Execute(args []string) error\n```\n\n```go\ntype MysqlDbRestore struct {\n\tOptions    MysqlCommonOptions `group:\"common\"`\n\tPositional struct {\n\t\tDatabase string `description:\"Database\" required:\"1\"`\n\t\tFilename string `description:\"Backup filename\" required:\"1\"`\n\t} `positional-args:\"true\"`\n}\n```\n\n```go\nfunc (conf *MysqlDbRestore) Execute(args []string) error\n```\n\n```go\ntype MysqlDebug struct {\n\tOptions MysqlCommonOptions `group:\"common\"`\n}\n```\n\n```go\nfunc (conf *MysqlDebug) Execute(args []string) error\n```\n\n```go\ntype MysqlServerDump struct {\n\tOptions    MysqlCommonOptions `group:\"common\"`\n\tPositional struct {\n\t\tFilename string `description:\"Backup filename\" required:\"1\"`\n\t} `positional-args:\"true\"`\n}\n```\n\n```go\nfunc (conf *MysqlServerDump) Execute(args []string) error\n```\n\n```go\ntype MysqlServerRestore struct {\n\tOptions    MysqlCommonOptions `group:\"common\"`\n\tPositional struct {\n\t\tFilename string `description:\"Backup filename\" required:\"1\"`\n\t} `positional-args:\"true\"`\n}\n```\n\n```go\nfunc (conf *MysqlServerRestore) Execute(args []string) error\n```\n\n```go\ntype MysqlSlowLog struct {\n\tOptions           MysqlCommonOptions `group:\"common\"`\n\tQueryTime         int                `long:\"querytime\"    description:\"Slow query time (seconds)\"  default:\"10\"`\n\tQueryWithoutIndex bool               `long:\"no-index\"     description:\"Log queries using NO index\"`\n}\n```\n\n```go\nfunc (conf *MysqlSlowLog) Execute(args []string) error\n```\n\n```go\ntype MysqlSql struct {\n\tOptions     MysqlCommonOptions `group:\"common\"`\n\tInteractive bool               `short:\"i\" long:\"interactive\"     description:\"Run interactive shell\"`\n}\n```\n\n```go\nfunc (conf *MysqlSql) Execute(args []string) error\n```\n\n```go\ntype PostgresCommonOptions struct {\n\tSSH             string `long:\"ssh\"`\n\tDocker          string `long:\"docker\"`\n\tPostgres        string `long:\"postgres\"`\n\tPostgresOptions struct {\n\t\tHostname string `long:\"hostname\"`\n\t\tPort     string `long:\"port\"`\n\t\tUsername string `long:\"user\"`\n\t\tPassword string `long:\"password\"`\n\t} `group:\"postgres\" namespace:\"postgres\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (conf *PostgresCommonOptions) ExecStatement(statement string) string\n```\n\n```go\nfunc (conf *PostgresCommonOptions) Init() error\n```\n\n```go\nfunc (conf *PostgresCommonOptions) InitDockerSettings()\n```\n\n```go\nfunc (conf *PostgresCommonOptions) PgDumpAllCommandBuilder() []interface{}\n```\n\n```go\nfunc (conf *PostgresCommonOptions) PgDumpCommandBuilder(database string) []interface{}\n```\n\n```go\nfunc (conf *PostgresCommonOptions) PostgresRestoreCommandBuilder(args ...string) []interface{}\n```\n\n```go\nfunc (conf *PostgresCommonOptions) PsqlCommandBuilder(args ...string) []interface{}\n```\n\n```go\ntype PostgresDbDump struct {\n\tOptions    PostgresCommonOptions `group:\"common\"`\n\tPositional struct {\n\t\tDatabase string `description:\"Database\" required:\"1\"`\n\t\tFilename string `description:\"Backup filename\" required:\"1\"`\n\t} `positional-args:\"true\"`\n}\n```\n\n```go\nfunc (conf *PostgresDbDump) Execute(args []string) error\n```\n\n```go\ntype PostgresDbRestore struct {\n\tOptions    PostgresCommonOptions `group:\"common\"`\n\tPositional struct {\n\t\tDatabase string `description:\"Database\" required:\"1\"`\n\t\tFilename string `description:\"Backup filename\" required:\"1\"`\n\t} `positional-args:\"true\"`\n}\n```\n\n```go\nfunc (conf *PostgresDbRestore) Execute(args []string) error\n```\n\n```go\ntype PostgresServerDump struct {\n\tOptions    PostgresCommonOptions `group:\"common\"`\n\tPositional struct {\n\t\tFilename string `description:\"Backup filename\" required:\"1\"`\n\t} `positional-args:\"true\"`\n}\n```\n\n```go\nfunc (conf *PostgresServerDump) Execute(args []string) error\n```\n\n```go\ntype PostgresServerRestore struct {\n\tOptions    PostgresCommonOptions `group:\"common\"`\n\tPositional struct {\n\t\tFilename string `description:\"Backup filename\" required:\"1\"`\n\t} `positional-args:\"true\"`\n}\n```\n\n```go\nfunc (conf *PostgresServerRestore) Execute(args []string) error\n```\n\n```go\ntype PostgresSql struct {\n\tOptions     PostgresCommonOptions `group:\"common\"`\n\tInteractive bool                  `short:\"i\" long:\"interactive\"     description:\"Run interactive shell\"`\n}\n```\n\n```go\nfunc (conf *PostgresSql) Execute(args []string) error\n```\n\n```go\ntype SelfUpdate struct {\n\tCurrentVersion      string\n\tGithubOrganization  string\n\tGithubRepository    string\n\tGithubAssetTemplate string\n\tForce               bool `long:\"force\"  description:\"force update\"`\n}\n```\n\n```go\nfunc (conf *SelfUpdate) Execute(args []string) error\n```\n\n```go\ntype Typo3BeUser struct {\n\tOptions    MysqlCommonOptions `group:\"common\"`\n\tPositional struct {\n\t\tDatabase string `description:\"Database\" required:\"1\"`\n\t} `positional-args:\"true\"`\n\tUsername string `long:\"typo3-user\"       description:\"TYPO3 username\"    default:\"dev\"`\n\tPassword string `long:\"typo3-password\"   description:\"TYPO3 password\"    default:\"dev\"`\n}\n```\n\n```go\nfunc (conf *Typo3BeUser) Execute(args []string) error\n```\n\n```go\ntype Typo3Stubs struct {\n\tOptions    MysqlCommonOptions `group:\"common\"`\n\tPositional struct {\n\t\tDatabase string `description:\"Database\" required:\"1\"`\n\t} `positional-args:\"true\"`\n\tRootPath string `long:\"path\"            description:\"TYPO3 root path\"`\n\tForce    bool   `short:\"f\"  long:\"force\"      description:\"Overwrite existing files\"`\n}\n```\n\n```go\nfunc (conf *Typo3Stubs) Execute(args []string) error\n```\n\n```go\nfunc (conf *Typo3Stubs) GetTypo3Root() (string, error)\n```\n\n```go\ntype Version struct {\n\tShowOnlyVersion bool `long:\"dump\"  description:\"show only version number and exit\"`\n\tName            string\n\tVersion         string\n\tAuthor          string\n}\n```\n\n```go\nfunc (conf *Version) Execute(args []string) error\n```\n\n","path":"github.com/webdevops/go-devtool/command","name":"command","synopsis":"","isRedistributable":true}
