-
-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1506 from hairyhenderson/clarify-git-url-docs
Clarify git URL docs - stop implying subpaths starting with '//' are a good idea
- Loading branch information
Showing
2 changed files
with
40 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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://[email protected]/hairyhenderson/go-which' -i '{{ len (ds "which") }}' | ||
$ gomplate -d 'which=git+ssh://[email protected]/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 | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters