Titanium JIRA Archive
Appcelerator Daemon (DAEMON)

[DAEMON-115] appcd: config command should maybe return object when --json

GitHub Issuen/a
TypeBug
PriorityHigh
StatusResolved
ResolutionFixed
Resolution Date2017-11-15T23:34:32.000+0000
Affected Version/sn/a
Fix Version/sAppc Daemon 1.0.0
Componentsappcd, appcd-config-service
Labelsn/a
ReporterChris Barber
AssigneeEwan Harris
Created2017-10-28T04:59:07.000+0000
Updated2017-11-15T23:34:32.000+0000

Description

When the --json flag is passed to appcd config, the response should always be a JSON object that contains a status code along with either a result value or an error message.

Comments

  1. Chris Barber 2017-10-31

    I'm not sure this is a good idea. While it is JavaScript/Node friendly, it's not very Unix-y.
  2. Ewan Harris 2017-11-06

    [~cbarber] Would the standard output i.e. non\-\-\-json not be good enough for people wanting to pipe stuff between commands? I'm guessing the main consumers of the config command with --json would be internal tooling? (I would expect Studio to use websockets as opposed to spawning processes). I think a json response with a response value and appropriate (and documented) error code would be useful
  3. Ewan Harris 2017-11-15

    https://github.com/appcelerator/appc-daemon/pull/148

JSON Source