Skip to content

Commit 93e9169

Browse files
mdimicelijpalermo
authored andcommitted
fix lint and unit tests
1 parent 5242263 commit 93e9169

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

commands/usage_test.go

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ Usage:
3939
bbl [GLOBAL OPTIONS] COMMAND [OPTIONS]
4040
4141
Global Options:
42-
--help [-h] Prints usage. Use "bbl [command] --help" for more information about a command
43-
--state-dir [-s] Directory containing the bbl state env:"BBL_STATE_DIRECTORY"
44-
--debug [-d] Prints debugging output env:"BBL_DEBUG"
45-
--version [-v] Prints version
46-
--no-confirm [-n] No confirm
42+
--help [-h] Prints usage. Use "bbl [command] --help" for more information about a command
43+
--state-dir [-s] Directory containing the bbl state env:"BBL_STATE_DIRECTORY"
44+
--debug [-d] Prints debugging output env:"BBL_DEBUG"
45+
--version [-v] Prints version
46+
--no-confirm [-n] No confirm
47+
--use-tf-local-binary [-u] Use the local terraform binary if it exists env:"BBL_USE_TF_LOCAL_BINARY"
4748
4849
Basic Commands: A good place to start
4950
up Deploys BOSH director on an IAAS, creates CF/Concourse load balancers. Updates existing director.
@@ -84,11 +85,12 @@ Troubleshooting Commands:
8485
bbl [GLOBAL OPTIONS] my-command [OPTIONS]
8586
8687
Global Options:
87-
--help [-h] Prints usage. Use "bbl [command] --help" for more information about a command
88-
--state-dir [-s] Directory containing the bbl state env:"BBL_STATE_DIRECTORY"
89-
--debug [-d] Prints debugging output env:"BBL_DEBUG"
90-
--version [-v] Prints version
91-
--no-confirm [-n] No confirm
88+
--help [-h] Prints usage. Use "bbl [command] --help" for more information about a command
89+
--state-dir [-s] Directory containing the bbl state env:"BBL_STATE_DIRECTORY"
90+
--debug [-d] Prints debugging output env:"BBL_DEBUG"
91+
--version [-v] Prints version
92+
--no-confirm [-n] No confirm
93+
--use-tf-local-binary [-u] Use the local terraform binary if it exists env:"BBL_USE_TF_LOCAL_BINARY"
9294
9395
[my-command command options]
9496
some message

terraform/binary_path.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ func NewBinary(tfUseLocalBinary bool) *Binary {
5050
func (binary *Binary) BinaryPath() (string, error) {
5151
// if user has a terraform use it
5252
if binary.UseLocalBinary {
53-
userTerraform, err := exec.LookPath(tfBinDataAssetName)
54-
if err == nil && userTerraform != "" {
55-
return userTerraform, nil
56-
}
53+
userTerraform, err := exec.LookPath(tfBinDataAssetName)
54+
if err == nil && userTerraform != "" {
55+
return userTerraform, nil
56+
}
5757
}
5858

5959
destinationPath := fmt.Sprintf("%s/%s", binary.FS.GetTempDir(os.TempDir()), bblTfBinaryName)

0 commit comments

Comments
 (0)