diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2022-09-25 18:58:35 -0400 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2022-09-25 18:58:35 -0400 |
| commit | ccd1eabc66d3fef316cee95dce744260d7c891dd (patch) | |
| tree | 4e0df605db6cf067230931b4d5b554c6dde0df91 /docs | |
| parent | 591a6edcb59b5221534939b85ce4571e2d0af77a (diff) | |
Clarify git URL docs - stop implying subpaths starting with '//' are a good idea
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/content/datasources.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/content/datasources.md b/docs/content/datasources.md index aac4b079..8531ad37 100644 --- a/docs/content/datasources.md +++ b/docs/content/datasources.md @@ -491,7 +491,7 @@ namespace is: env Accessing a file from a local repo (using arguments): ```console -$ gomplate -d which=git+file:///repos/go-which -i 'GOPATH on Windows is {{ (datasource "which" "//appveyor.yml").environment.GOPATH }}' +$ gomplate -d which=git+file:///repos/go-which/ -i 'GOPATH on Windows is {{ (datasource "which" ".//appveyor.yml").environment.GOPATH }}' GOPATH on Windows is c:\gopath ``` @@ -503,13 +503,13 @@ $ gomplate -d 'cmd=git+https://github.com/hairyhenderson/go-which//cmd/which#ref Authenticating with the SSH Agent ```console -$ gomplate -d 'which=git+ssh://git@github.com/hairyhenderson/go-which' -i '{{ len (ds "which") }}' +$ gomplate -d 'which=git+ssh://git@github.com/hairyhenderson/go-which/' -i '{{ len (ds "which") }}' 18 ``` Using arguments to specify different repos ```console -$ gomplate -d 'hairyhenderson=git+https://github.com/hairyhenderson' -i '{{ (ds "hairyhenderson" "/gomplate//docs-src/content/functions/env.yml").ns }}' +$ gomplate -d 'hairyhenderson=git+https://github.com/hairyhenderson/' -i '{{ (ds "hairyhenderson" "gomplate//docs-src/content/functions/env.yml").ns }}' env ``` |
