diff options
author | davidejones <[email protected]> | 2023-03-04 09:18:43 +0000 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-03-07 15:38:26 +0100 |
commit | bebb2b8d0a0a15350c492b13ce878ac5b01d488c (patch) | |
tree | a33061e3f311ad9aff765cc9a08aedfc1d77be1b /commands/deploy.go | |
parent | e6f029bdeef4e1a719c5e77d51006b9007d96646 (diff) | |
download | hugo-bebb2b8d0a0a15350c492b13ce878ac5b01d488c.tar.gz hugo-bebb2b8d0a0a15350c492b13ce878ac5b01d488c.zip |
switch transfers to workers
Diffstat (limited to 'commands/deploy.go')
-rw-r--r-- | commands/deploy.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/deploy.go b/commands/deploy.go index 3a717201e..295940c2e 100644 --- a/commands/deploy.go +++ b/commands/deploy.go @@ -31,7 +31,7 @@ type deployCmd struct { invalidateCDN bool maxDeletes int - transfers int + workers int } // TODO: In addition to the "deploy" command, consider adding a "--deploy" @@ -60,7 +60,7 @@ documentation. cfgInit := func(c *commandeer) error { c.Set("invalidateCDN", cc.invalidateCDN) c.Set("maxDeletes", cc.maxDeletes) - c.Set("transfers", cc.transfers) + c.Set("workers", cc.workers) return nil } comm, err := initializeConfig(true, true, false, &cc.hugoBuilderCommon, cc, cfgInit) @@ -81,7 +81,7 @@ documentation. cmd.Flags().Bool("force", false, "force upload of all files") cmd.Flags().BoolVar(&cc.invalidateCDN, "invalidateCDN", true, "invalidate the CDN cache listed in the deployment target") cmd.Flags().IntVar(&cc.maxDeletes, "maxDeletes", 256, "maximum # of files to delete, or -1 to disable") - cmd.Flags().IntVar(&cc.transfers, "transfers", 10, "number of file transfers to run in parallel. defaults to 10") + cmd.Flags().IntVar(&cc.workers, "workers", 10, "number of workers to transfer files. defaults to 10") cc.baseBuilderCmd = b.newBuilderBasicCmd(cmd) |