Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CfgFile, Source, Deploy string
View Source
var RootCmd = &cobra.Command{
Use: "hugodeploy",
Short: "HugoDeploy deploys files to a webserver using SFTP",
Long: `HugoDeploy tracks changes made to a local directory and
transfers those changes to a remote server. Currently the transfer
is done using SFTP.
HugoDeploy can generate a list of changed files using the preview
command and does the actual transfer using the push command.
By default HugoDeploy minifies files prior to transfer.
HugoDeploy requires a configuration file to nominate directories and
setup server connection details. By default the configuration file is
expected in the directory HugoDeploy is executed from.`,
}
This represents the base command when called without any subcommands
View Source
var SkipFiles []string
View Source
var Verbose, Debug, UnMinify bool
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func LoadDefaultSettings ¶
func LoadDefaultSettings()
func ProjectPath ¶
func ProjectPath() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.