Skip to content

Commit

Permalink
fix cue fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
  • Loading branch information
aluzzardi committed May 27, 2021
1 parent 5d63b22 commit af32e60
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 26 deletions.
6 changes: 2 additions & 4 deletions .dagger/env/dev/plan/main.cue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
// Dagger source code
source: dagger.#Artifact @dagger(input)


test: {
// Go unit tests
unit: {
Expand Down Expand Up @@ -52,12 +51,11 @@ build: {
}).read.data
}


// Execute `dagger help`
usage: os.#Container & {
command: "dagger help"

let binpath="/usr/local/dagger/bin"
mount: "\(binpath)": from: build.binaries
let binpath = "/usr/local/dagger/bin"
mount: "\(binpath)": from: build.binaries
shell: search: "\(binpath)": true
}
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ golint:

.PHONY: cuefmt
cuefmt:
@(cue fmt -s ./stdlib/...)
@(cue fmt -s ./examples/*/)
@(cue fmt -s ./tests/...)
@(find . -name '*.cue' -exec cue fmt -s {} \;)

.PHONY: cuelint
cuelint: cuefmt
Expand Down
22 changes: 10 additions & 12 deletions cmd/spec.cue
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ import (

flag: {
"--environment": {
alt: "-d"
alt: "-d"
description:
"""
Select an environment
Select an environment
If no environment is specified, dagger searches for environments using the current
directory as input.
If no environment is specified, dagger searches for environments using the current
directory as input.
* 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 no match, the command returns an error.
"""
arg: "NAME"
* 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 no match, the command returns an error.
"""
arg: "NAME"
}
"--log-format": {
arg: "string"
Expand Down Expand Up @@ -164,9 +164,7 @@ import (

history: description: "List past changes to an environment"

delete: {
description: "Delete an environment after taking it offline (WARNING: may destroy infrastructure)"
}
delete: description: "Delete an environment after taking it offline (WARNING: may destroy infrastructure)"

plan: {
description: "Manage an environment plan"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ package def
do: "exec"
dir: "/"
args: ["sh", "-c", """
echo success
"""]
echo success
"""]
},
]
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ dang: string
do: "exec"
dir: "/"
args: ["sh", "-c", """
echo "This test SHOULD fail, because this SHOULD be executed"
exit 1
"""]
echo "This test SHOULD fail, because this SHOULD be executed"
exit 1
"""]
},
]
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dang?: string
do: "exec"
dir: "/"
args: ["sh", "-c", """
echo success
"""]
echo success
"""]
},
]

0 comments on commit af32e60

Please sign in to comment.