firebase-tools icon indicating copy to clipboard operation
firebase-tools copied to clipboard

allow for logging when using as a node dependency

Open SJAnderson opened this issue 9 years ago • 2 comments

I noticed that when I called deploy like in the example below (warning, its coffee-script), none of the verbose CLI logs printed. Looks like logging is setup in the bin file, could we set that up in the module as well? Possibly add a verbose option to turn on or off.

fb_tools.deploy {
  project: project
  projectDir: project_path
  cwd: project_path
  only: 'functions'
}
  .then ->
    log "#{project} deployed"
    next()

SJAnderson avatar Apr 28 '17 20:04 SJAnderson

The nonInteractive: true option mentioned in #184 worked for me.

prescottprue avatar Jul 18 '17 06:07 prescottprue

@SJAnderson does the nonInteractive: true work for you? Please reopen if this is still an issue.

kevinajian avatar Jan 09 '19 00:01 kevinajian