This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/stdlib/git/git.cue
Sam Alba 7009d01835 stdlib: added @dagger(input) and @dagger(output) attributes
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-26 12:23:44 +02:00

26 lines
322 B
CUE

package git
import (
"dagger.io/dagger/op"
)
// A git repository
#Repository: {
remote: string @dagger(input)
ref: string @dagger(input)
subdir: string | *"" @dagger(input)
#up: [
op.#FetchGit & {
"remote": remote
"ref": ref
},
if subdir != "" {
op.#Subdir & {
dir: subdir
}
},
]
}