class SyntaxTree::CLI::ConfigFile
We allow a minimal configuration file to act as additional command line arguments to the CLI
. Each line of the config file should be a new argument, as in:
--plugins=plugin/single_quote --print-width=100
When
invoking the CLI
, we will read this config file and then parse it if it exists in the current working directory.
Constants
- FILENAME
Attributes
Public Class Methods
Source
# File lib/syntax_tree/cli.rb, line 566 def initialize @filepath = File.join(Dir.pwd, FILENAME) end
Public Instance Methods
Source
# File lib/syntax_tree/cli.rb, line 574 def arguments exists? ? File.readlines(filepath, chomp: true) : [] end