fix cue fmt
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
5d63b22ad1
commit
af32e60b37
6
.dagger/env/dev/plan/main.cue
vendored
6
.dagger/env/dev/plan/main.cue
vendored
@ -10,7 +10,6 @@ import (
|
|||||||
// Dagger source code
|
// Dagger source code
|
||||||
source: dagger.#Artifact @dagger(input)
|
source: dagger.#Artifact @dagger(input)
|
||||||
|
|
||||||
|
|
||||||
test: {
|
test: {
|
||||||
// Go unit tests
|
// Go unit tests
|
||||||
unit: {
|
unit: {
|
||||||
@ -52,12 +51,11 @@ build: {
|
|||||||
}).read.data
|
}).read.data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Execute `dagger help`
|
// Execute `dagger help`
|
||||||
usage: os.#Container & {
|
usage: os.#Container & {
|
||||||
command: "dagger help"
|
command: "dagger help"
|
||||||
|
|
||||||
let binpath="/usr/local/dagger/bin"
|
let binpath = "/usr/local/dagger/bin"
|
||||||
mount: "\(binpath)": from: build.binaries
|
mount: "\(binpath)": from: build.binaries
|
||||||
shell: search: "\(binpath)": true
|
shell: search: "\(binpath)": true
|
||||||
}
|
}
|
||||||
|
4
Makefile
4
Makefile
@ -19,9 +19,7 @@ golint:
|
|||||||
|
|
||||||
.PHONY: cuefmt
|
.PHONY: cuefmt
|
||||||
cuefmt:
|
cuefmt:
|
||||||
@(cue fmt -s ./stdlib/...)
|
@(find . -name '*.cue' -exec cue fmt -s {} \;)
|
||||||
@(cue fmt -s ./examples/*/)
|
|
||||||
@(cue fmt -s ./tests/...)
|
|
||||||
|
|
||||||
.PHONY: cuelint
|
.PHONY: cuelint
|
||||||
cuelint: cuefmt
|
cuelint: cuefmt
|
||||||
|
22
cmd/spec.cue
22
cmd/spec.cue
@ -41,19 +41,19 @@ import (
|
|||||||
|
|
||||||
flag: {
|
flag: {
|
||||||
"--environment": {
|
"--environment": {
|
||||||
alt: "-d"
|
alt: "-d"
|
||||||
description:
|
description:
|
||||||
"""
|
"""
|
||||||
Select an environment
|
Select an environment
|
||||||
|
|
||||||
If no environment is specified, dagger searches for environments using the current
|
If no environment is specified, dagger searches for environments using the current
|
||||||
directory as input.
|
directory as input.
|
||||||
|
|
||||||
* If exactly one environment matches the search, it is selected.
|
* If exactly one environment matches the search, it is selected.
|
||||||
* If there is more than one match, the user is prompted to select one.
|
* If there is more than one match, the user is prompted to select one.
|
||||||
* If there is no match, the command returns an error.
|
* If there is no match, the command returns an error.
|
||||||
"""
|
"""
|
||||||
arg: "NAME"
|
arg: "NAME"
|
||||||
}
|
}
|
||||||
"--log-format": {
|
"--log-format": {
|
||||||
arg: "string"
|
arg: "string"
|
||||||
@ -164,9 +164,7 @@ import (
|
|||||||
|
|
||||||
history: description: "List past changes to an environment"
|
history: description: "List past changes to an environment"
|
||||||
|
|
||||||
delete: {
|
delete: description: "Delete an environment after taking it offline (WARNING: may destroy infrastructure)"
|
||||||
description: "Delete an environment after taking it offline (WARNING: may destroy infrastructure)"
|
|
||||||
}
|
|
||||||
|
|
||||||
plan: {
|
plan: {
|
||||||
description: "Manage an environment plan"
|
description: "Manage an environment plan"
|
||||||
|
@ -11,7 +11,7 @@ package def
|
|||||||
do: "exec"
|
do: "exec"
|
||||||
dir: "/"
|
dir: "/"
|
||||||
args: ["sh", "-c", """
|
args: ["sh", "-c", """
|
||||||
echo success
|
echo success
|
||||||
"""]
|
"""]
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
@ -11,8 +11,8 @@ dang: string
|
|||||||
do: "exec"
|
do: "exec"
|
||||||
dir: "/"
|
dir: "/"
|
||||||
args: ["sh", "-c", """
|
args: ["sh", "-c", """
|
||||||
echo "This test SHOULD fail, because this SHOULD be executed"
|
echo "This test SHOULD fail, because this SHOULD be executed"
|
||||||
exit 1
|
exit 1
|
||||||
"""]
|
"""]
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
@ -11,7 +11,7 @@ dang?: string
|
|||||||
do: "exec"
|
do: "exec"
|
||||||
dir: "/"
|
dir: "/"
|
||||||
args: ["sh", "-c", """
|
args: ["sh", "-c", """
|
||||||
echo success
|
echo success
|
||||||
"""]
|
"""]
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user