{"modulePath":"github.com/webdevops/go-sync","version":"v0.0.0-20200305181540-9bb75832f780","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\n## Constants\n\n```go\nconst (\n\t// application informations\n\tName    = \"gosync\"\n\tAuthor  = \"webdevops.io\"\n\tVersion = \"0.6.1\"\n\n\t// self update informations\n\tGithubOrganization  = \"webdevops\"\n\tGithubRepository    = \"go-sync\"\n\tGithubAssetTemplate = \"gosync-%OS%-%ARCH%\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\tLogger *logger.SyncLogger\n)\n```\n\n## Types\n\n```go\ntype AbstractCommand struct {\n}\n```\n\n```go\nfunc (command *AbstractCommand) GetConfig() *sync.SyncConfig\n```\n\n```go\ntype DeployCommand struct {\n\tAbstractCommand\n\tPositional struct {\n\t\tServer string `description:\"server configuration key\"`\n\t} `positional-args:\"true\"`\n\tDump           bool `long:\"dump\"        description:\"dump configuration as yaml\"`\n\tOnlyFilesystem bool `long:\"filesystem\"  description:\"deploy only filesystem\"`\n\tOnlyDatabase   bool `long:\"database\"    description:\"deploy only database\"`\n\tSkipExec       bool `long:\"skip-exec\"   description:\"skip execution\"`\n}\n```\n\n```go\nfunc (command *DeployCommand) Execute(args []string) error\n```\nRun deployment command\n\n```go\ntype ListCommand struct {\n\tAbstractCommand\n}\n```\n\n```go\nfunc (command *ListCommand) Execute(args []string) error\n```\nList all possible server configurations (for sync and deploy)\n\n```go\ntype SelfUpdateCommand 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 *SelfUpdateCommand) Execute(args []string) error\n```\n\n```go\ntype SyncCommand struct {\n\tAbstractCommand\n\tPositional struct {\n\t\tServer string `description:\"server configuration key\"`\n\t} `positional-args:\"true\"`\n\tDump           bool `long:\"dump\"        description:\"dump configuration as yaml\"`\n\tOnlyFilesystem bool `long:\"filesystem\"  description:\"sync only filesystem\"`\n\tOnlyDatabase   bool `long:\"database\"    description:\"sync only database\"`\n\tSkipExec       bool `long:\"skip-exec\"   description:\"skip execution\"`\n}\n```\n\n```go\nfunc (command *SyncCommand) Execute(args []string) error\n```\nRun sync command\n\n```go\ntype VersionCommand 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 *VersionCommand) Execute(args []string) error\n```\nShow app version\n\n","path":"github.com/webdevops/go-sync","name":"main","synopsis":"","isRedistributable":true}
