universe: git: comments, use null defaults
Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
parent
f308e51892
commit
89e3bb052e
@ -9,16 +9,23 @@ import (
|
|||||||
// A git repository
|
// A git repository
|
||||||
#Repository: {
|
#Repository: {
|
||||||
|
|
||||||
remote: string @dagger(input)
|
// Git remote.
|
||||||
ref: string @dagger(input)
|
// Example: "https://github.com/dagger/dagger")
|
||||||
subdir: string | *"" @dagger(input)
|
remote: string @dagger(input)
|
||||||
|
|
||||||
|
// Git ref: can be a commit, tag or branch.
|
||||||
|
// Example: "main"
|
||||||
|
ref: string @dagger(input)
|
||||||
|
|
||||||
|
// (optional) Subdirectory
|
||||||
|
subdir: string | *null @dagger(input)
|
||||||
|
|
||||||
#up: [
|
#up: [
|
||||||
op.#FetchGit & {
|
op.#FetchGit & {
|
||||||
"remote": remote
|
"remote": remote
|
||||||
"ref": ref
|
"ref": ref
|
||||||
},
|
},
|
||||||
if subdir != "" {
|
if subdir != null {
|
||||||
op.#Subdir & {
|
op.#Subdir & {
|
||||||
dir: subdir
|
dir: subdir
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user