[DAEMON-157] appcd: Suppress banner when run through appc
GitHub Issue | n/a |
Type | Improvement |
Priority | Medium |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2017-11-16T22:22:38.000+0000 |
Affected Version/s | Appc Daemon 1.0.0 |
Fix Version/s | Appc Daemon 1.0.0 |
Components | appcd |
Labels | n/a |
Reporter | Ewan Harris |
Assignee | Chris Barber |
Created | 2017-11-16T21:46:18.000+0000 |
Updated | 2017-11-17T00:15:33.000+0000 |
Description
Description
It was raised that the double banner when running appc appcd
shouldn't happen, we should suppress this, I think we can use the APPC_ENV environment variable to do so, alternatively we could have the CLI push a --no-banner
flag but I prefer the former
Comments
JSON Source
[~cbarber] Are you good with this change? I'll fold in with DAEMON-129 if so
Agreed. If the
APPC_ENV
is defined, appcd will suppress the banner.Eurgh, sorry [~cbarber] that doesn't seem to be taking on my Windows machine. Shall we add
process.env.APPC_ENV = true;
to appc-cli here [here](https://github.com/appcelerator/appc-cli/blob/8594e625681243c21e28fb242ce7501f13223258/bin/commands/appcd.js#L32) for simplicity?How about
process.env.hasOwnProperty('APPC_ENV')
?Fixed https://github.com/appcelerator/appc-daemon/pull/158