Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-11753

CLI: titanium config paths.sdks arg0 is additive, should replace entire path

    Details

      Description

      When 'titanium config paths.sdks /blah' is called, the config.json file concatenates a new path to the property: paths.sdks. It should update the path completely.

      Steps to Reproduce:

      1. Run 'titanium config paths.sdks /blah'.
      2. Run 'titanium config paths.sdks /blah2'.

      Actual Result:

      .titanium/config.json changes paths.sdks to:

      	"paths": {
      		"commands": [],
      		"hooks": [],
      		"modules": [],
      		"plugins": [],
      		"sdks": [
      			"/blah",
      			"/blah2"
      		]
      	},
      

      Expected Result:

      Only one path value:

      	"paths": {
      		"commands": [],
      		"hooks": [],
      		"modules": [],
      		"plugins": [],
      		"sdks": [
      			"/blah2"
      		]
      	},
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                dhyde Dustin Hyde
                Tester:
                Olga Romero
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-14937
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code