From f2f692c322321dfd5189a064ae5d1313d5cc11cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 5 Jul 2021 10:13:41 +0200 Subject: [PATCH] commands: Make the --poll flag a duration So you can do: ``` hugo server --poll 700ms ``` See #8720 --- content/en/commands/hugo.md | 2 +- content/en/commands/hugo_mod.md | 2 +- content/en/commands/hugo_new.md | 2 +- content/en/commands/hugo_server.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/en/commands/hugo.md b/content/en/commands/hugo.md index f1e9c95cb..43d9e77b7 100644 --- a/content/en/commands/hugo.md +++ b/content/en/commands/hugo.md @@ -51,7 +51,7 @@ hugo [flags] --noChmod don't sync permission mode of files --noTimes don't sync modification time of files --path-warnings print warnings on duplicate target paths etc. - --poll use a poll based approach to watch for file system changes + --poll string set this to a poll interval, e.g --poll 700ms, to use a poll based approach to watch for file system changes --print-mem print memory usage to screen at intervals --quiet build in quiet mode --renderToMemory render to memory (only useful for benchmark testing) diff --git a/content/en/commands/hugo_mod.md b/content/en/commands/hugo_mod.md index 70c765e91..044cff1a2 100644 --- a/content/en/commands/hugo_mod.md +++ b/content/en/commands/hugo_mod.md @@ -46,7 +46,7 @@ See https://gohugo.io/hugo-modules/ for more information. --noChmod don't sync permission mode of files --noTimes don't sync modification time of files --path-warnings print warnings on duplicate target paths etc. - --poll use a poll based approach to watch for file system changes + --poll string set this to a poll interval, e.g --poll 700ms, to use a poll based approach to watch for file system changes --print-mem print memory usage to screen at intervals --templateMetrics display metrics about template executions --templateMetricsHints calculate some improvement hints when combined with --templateMetrics diff --git a/content/en/commands/hugo_new.md b/content/en/commands/hugo_new.md index d6afe7ed2..4c49d11c7 100644 --- a/content/en/commands/hugo_new.md +++ b/content/en/commands/hugo_new.md @@ -47,7 +47,7 @@ hugo new [path] [flags] --noChmod don't sync permission mode of files --noTimes don't sync modification time of files --path-warnings print warnings on duplicate target paths etc. - --poll use a poll based approach to watch for file system changes + --poll string set this to a poll interval, e.g --poll 700ms, to use a poll based approach to watch for file system changes --print-mem print memory usage to screen at intervals --templateMetrics display metrics about template executions --templateMetricsHints calculate some improvement hints when combined with --templateMetrics diff --git a/content/en/commands/hugo_server.md b/content/en/commands/hugo_server.md index 3c9675824..d801054dc 100644 --- a/content/en/commands/hugo_server.md +++ b/content/en/commands/hugo_server.md @@ -59,7 +59,7 @@ hugo server [flags] --noHTTPCache prevent HTTP caching --noTimes don't sync modification time of files --path-warnings print warnings on duplicate target paths etc. - --poll use a poll based approach to watch for file system changes + --poll string set this to a poll interval, e.g --poll 700ms, to use a poll based approach to watch for file system changes -p, --port int port on which the server will listen (default 1313) --print-mem print memory usage to screen at intervals --renderToDisk render to Destination path (default is render to memory & serve from there)