-
Notifications
You must be signed in to change notification settings - Fork 58
add option to skip conflicts when uploading #413
Conversation
The option --skip or -s for `kanso upload` makes the command ignore document update conflicts and report them as "skipped" While still treating this as success (errlevel 0) The reason for this modification is to allow for automating our deployment which ensure the presence of a few documents but still allows them to be modified later by the application
Hey @Floby have a look at the test directory. I also updated package.json so you can run |
Yes, I found that afterwars after looking at the travis config file. Tests are green, however I couldn't find any test on the |
More tests are usually good. It's up to you, I will go ahead and merge though. |
I must say I probably don't know enough about the codebase to efficiently write tests for the whole upload command. If you merge this, could you please bump a patch version and publish it :) ? |
add option to skip conflicts when uploading.
Done, pushed 0.3.3 to npm. |
thanks a lot ! On 28 August 2014 16:57, Milan Andric notifications@github.com wrote:
|
You should us the '--skip' parameter somewhere no ? :) |
Yeah indeed. |
Should I make another pull request ? |
Well, I'm gonna push something even better later on, so let's wait a bit :D
|
No worries, I'm also getting up to speed. ;-) |
Oops #413 Pushing this to npm as 0.3.4.
The option --skip or -s for
kanso upload
makes the commandignore document update conflicts and report them as "skipped"
While still treating this as success (errlevel 0)
The reason for this modification is to allow for automating our
deployment which ensure the presence of a few documents but
still allows them to be modified later by the application
I could not find how to write or even run tests, so I'm expecting some pointers for that so I can add proper testing to this.