Class: PhpCop::CLI
- Inherits:
-
Object
- Object
- PhpCop::CLI
- Defined in:
- lib/phpcop/cli.rb
Overview
The CLI is a class responsible of handling all the command line interface logic
Constant Summary collapse
- MSG_END =
'%s fichier traité. %s erreurs.'
Instance Attribute Summary collapse
-
#config_store ⇒ Object
readonly
Returns the value of attribute config_store.
Instance Method Summary collapse
-
#initialize ⇒ CLI
constructor
A new instance of CLI.
-
#run(_args = ARGV) ⇒ Object
Run all files.
Constructor Details
#initialize ⇒ CLI
Returns a new instance of CLI.
12 13 14 |
# File 'lib/phpcop/cli.rb', line 12 def initialize @config_store = ConfigStore.new end |
Instance Attribute Details
#config_store ⇒ Object (readonly)
Returns the value of attribute config_store.
8 9 10 |
# File 'lib/phpcop/cli.rb', line 8 def config_store @config_store end |