stdlib: added package doc strings

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba
2021-06-15 10:46:56 +02:00
parent 36b287c9d5
commit 9281967e16
23 changed files with 66 additions and 24 deletions

View File

@@ -9,7 +9,7 @@ import (
"dagger.io/os"
)
// A Yarn package.
// A Yarn package
#Package: {
// Application source code
source: dagger.#Artifact @dagger(input)
@@ -28,11 +28,11 @@ import (
} @dagger(input)
// Write the contents of `environment` to this file,
// in the "envfile" format.
// in the "envfile" format
writeEnvFile: string | *"" @dagger(input)
// Read build output from this directory
// (path must be relative to working directory).
// (path must be relative to working directory)
buildDir: string | *"build" @dagger(input)
// Run this yarn script
@@ -41,6 +41,7 @@ import (
// Optional arguments for the script
args: [...string] | *[] @dagger(input)
// Build output directory
build: os.#Dir & {
from: ctr
path: "/build"