Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

allowing reports setting

  • Loading branch information...
commit 2d84f5bb28c5ffd59e35744cf6e1748a27117beb 1 parent c87008a
@msuarz msuarz authored
Showing with 7 additions and 11 deletions.
  1. +5 −11 src/frankendoc.coffee
  2. +2 −0  src/settings.coffee
View
16 src/frankendoc.coffee
@@ -1,22 +1,16 @@
require 'fibrous'
Fiber = require 'fibers'
-settings = require './readers/settings'
-{ Files } = require './readers/files'
-{ Classes } = require './readers/classes'
-{ Runner } = require './runner/runner'
-{ Report } = require './reports/console'
-
class Frank
constructor: ->
- @runner = new Runner
- @files = new Files
- @classes = new Classes
- @report = new Report
+ require('./readers/settings').read()
+ @runner = new (require('./runner/runner').Runner)
+ @files = new (require('./readers/files').Files)
+ @classes = new (require('./readers/classes').Classes)
+ @report = new (require('./reports/' + settings.report).Report)
read: ->
- settings.read()
@files.read()
@classes.read @files.code
View
2  src/settings.coffee
@@ -13,3 +13,5 @@
source: 'files'
root: process.argv[2] or '.'
type: '.txt'
+ multiline_arg: '"""'
+ report: 'console'
Please sign in to comment.
Something went wrong with that request. Please try again.