Skip to content

Commit

Permalink
Read from ENV as fallback source for cli location option
Browse files Browse the repository at this point in the history
  • Loading branch information
ahangarha committed Nov 25, 2023
1 parent 1c18ae0 commit ad26c1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/command/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ def self.location_option(required: false)
banner: "LOCATION_NAME",
desc: "Location name",
type: :string,
required: required
required: required,
default: ENV.fetch("CPLN_LOCATION", nil)
}
}
end
Expand Down

0 comments on commit ad26c1e

Please sign in to comment.