Conversation
b7122fe to
27a7602
Compare
|
@ariporad @levithomason This should be ready for review. This adds the If we like this implementation and merge this, we can open a new PR to change I left this as 2 commits, since the first one adds error codes, and the second one refactors everything to return a ShellString (which gives every command the |
| // | ||
|
|
||
| // no piped methods for commands that don't return anything | ||
| assert.throws(function() { |
There was a problem hiding this comment.
Why did this get removed?
There was a problem hiding this comment.
Almost every command returns a ShellString now. So the number of "commands that don't return anything" has shrunk to almost zero.
|
LGTM! |
feat: adding error codes to ShellJS
This is a redo of #269.
This adds error codes as a
.codeattribute to ShellStrings, but doesn't implement theerrorCode()function.This also does not switch the implementation of the
error()function (that should be in another PR, IMO).Tests will be added soon.