Merge pull request #557 from shykes/stdlib-cleanup

Universe: cleanup
This commit is contained in:
Andrea Luzzardi 2021-06-03 11:27:18 -07:00 committed by GitHub
commit b805d37cb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 16 deletions

View File

@ -1,18 +1,16 @@
package docker package docker
import ( import (
"dagger.io/dagger/op"
"dagger.io/alpine" "dagger.io/alpine"
) )
#Client: #up: [ // A container image to run the Docker client
op.#Load & { #Client: alpine.#Image & {
from: alpine.#Image & { package: {
package: bash: true bash: true
package: jq: true jq: true
package: curl: true curl: true
package: "openssh-client": true "openssh-client": true
package: "docker-cli": true "docker-cli": true
} }
}, }
]

View File

@ -1,3 +1,4 @@
// DEPRECATED: see dagger.io/os
package file package file
import ( import (

View File

@ -9,16 +9,23 @@ import (
// A git repository // A git repository
#Repository: { #Repository: {
// Git remote.
// Example: "https://github.com/dagger/dagger")
remote: string @dagger(input) remote: string @dagger(input)
// Git ref: can be a commit, tag or branch.
// Example: "main"
ref: string @dagger(input) ref: string @dagger(input)
subdir: 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
} }