mumoshu / variant2

Turn your bash scripts into a modern, single-executable CLI app today
MIT License
143 stars 11 forks source link

Feature Request: Options and Parameters Expressed as Environment Variables #37

Open osterman opened 3 years ago

osterman commented 3 years ago

what

why

osterman commented 3 years ago

Actually, this should just work:

option "config-dir" {
  default     = coalesce(getenv("CONFIG_DIR"), "./stacks")
  description = "Stacks config directory"
  type        = string
}