Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Admin = cli.Command{ Name: "admin", Usage: "Perform admin operations on command line", Description: "Perform admin operations on command line", Subcommands: []cli.Command{ subcmdCreateUser, subcmdDeleteInactivateUsers, subcmdDeleteRepositoryArchives, subcmdDeleteMissingRepositories, subcmdGitGcRepos, subcmdRewriteAuthorizedKeys, subcmdSyncRepositoryHooks, subcmdReinitMissingRepositories, }, } )
View Source
var Backup = cli.Command{ Name: "backup", Usage: "Backup files and database", Description: `Backup dumps and compresses all related files and database into zip file, which can be used for migrating Gitote to another server. The output format is meant to be portable among all supported database engines.`, Action: runBackup, Flags: []cli.Flag{ stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"), boolFlag("verbose, v", "Show process details"), stringFlag("tempdir, t", os.TempDir(), "Temporary directory path"), stringFlag("target", "./", "Target directory path to save backup archive"), stringFlag("archive-name", fmt.Sprintf("gitote-backup-%s.zip", time.Now().Format("20060102150405")), "Name of backup archive"), boolFlag("database-only", "Only dump database"), boolFlag("exclude-repos", "Exclude repositories"), }, }
View Source
var Cert = cli.Command{
Name: "cert",
Usage: "Generate self-signed certificate",
Description: `Please use build tags "cert" to rebuild Gitote in order to have this ability`,
Action: runCert,
}
View Source
var ( Hook = cli.Command{ Name: "hook", Usage: "Delegate commands to corresponding Git hooks", Description: "All sub-commands should only be called by Git", Flags: []cli.Flag{ stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"), }, Subcommands: []cli.Command{ subcmdHookPreReceive, subcmdHookUpadte, subcmdHookPostReceive, }, } )
View Source
var ( Import = cli.Command{ Name: "import", Usage: "Import portable data as local Gitote data", Description: `Allow user import data from other Gitote installations to local instance without manually hacking the data files`, Subcommands: []cli.Command{ subcmdImportLocale, }, } )
View Source
var Restore = cli.Command{ Name: "restore", Usage: "Restore files and database from backup", Description: `Restore imports all related files and database from a backup archive. The backup version must lower or equal to current Gitote version. You can also import backup from other database engines, which is useful for database migrating. If corresponding files or database tables are not presented in the archive, they will be skipped and remain unchanged.`, Action: runRestore, Flags: []cli.Flag{ stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"), boolFlag("verbose, v", "Show process details"), stringFlag("tempdir, t", os.TempDir(), "Temporary directory path"), stringFlag("from", "", "Path to backup archive"), boolFlag("database-only", "Only import database"), boolFlag("exclude-repos", "Exclude repositories"), }, }
View Source
var Serv = cli.Command{ Name: "serv", Usage: "This command should only be called by SSH shell", Description: `Serv provide access auth for repositories`, Action: runServ, Flags: []cli.Flag{ stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"), }, }
View Source
var Web = cli.Command{ Name: "web", Usage: "Start web server", Description: `Gitote web server is the only thing you need to run, and it takes care of all the other things for you`, Action: runWeb, Flags: []cli.Flag{ stringFlag("port, p", "3000", "Temporary port number to prevent conflict"), stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"), }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.