Skip to content

Commit

Permalink
unified settings variables as HOMEBREW_FILE*
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmdnk committed Aug 18, 2016
1 parent 034bf98 commit 8300dc8
Show file tree
Hide file tree
Showing 4 changed files with 146 additions and 88 deletions.
9 changes: 5 additions & 4 deletions bin/brew-file
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ __author__ = "rcmdnk"
__copyright__ = "Copyright (c) 2013 rcmdnk"
__credits__ = ["rcmdnk"]
__license__ = "MIT"
__version__ = "v3.14.4"
__version__ = "v3.15.1"
__date__ = "18/Aug/2016"
__maintainer__ = "rcmdnk"
__email__ = "rcmdnk@gmail.com"
Expand Down Expand Up @@ -694,7 +694,8 @@ class BrewFile:
self.opt = {}

# Prepare helper, need verbose first
self.opt["verbose"] = int(os.environ.get("HOMEBREW_FILE_VERBOSE", 1))
self.opt["verbose"] = int(
os.environ.get("HOMEBREW_BRWEFILE_VERBOSE", 1))
self.helper = BrewHelper(self.opt)

# First check Homebrew
Expand Down Expand Up @@ -780,7 +781,7 @@ class BrewFile:
if os.path.isdir(x)]

self.opt["appstore"] = to_bool(
os.environ.get("HOMEBREW_FILE_APPSTORE", True))
os.environ.get("HOMEBREW_BREWFILE_APPSTORE", True))

self.int_opts = ["verbose"]
self.float_opts = []
Expand Down Expand Up @@ -2872,7 +2873,7 @@ def main():
dest="appstore", help="Don't check AppStore applications.\n"
"(For other than casklist command.)\n"
"You can set input file by environmental variable:\n"
" export HOMEBREW_FILE_APPSTORE=0")
" export HOMEBREW_BRWEFILE_APPSTORE=0")

dryrun_parser = argparse.ArgumentParser(add_help=False)
dryrun_parser.add_argument(
Expand Down

0 comments on commit 8300dc8

Please sign in to comment.