Skip to content

Commit 32d45c2

Browse files
committed
docs: about cmd exit code
1 parent 1e754a8 commit 32d45c2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ $app
122122
echo ($intentToAdd ? 'Intent to add ' : 'Add ')
123123
. implode(', ', $paths)
124124
. ($force ? ' with force' : '');
125+
126+
// If you return integer from here, that will be taken as exit error code
125127
})
126128
// Done setting up this command for now, tap() to retreat back so we can add another command
127129
->tap()
@@ -196,7 +198,9 @@ class InitCommand extends Ahc\Cli\Input\Command
196198
$io->write('Apple ' . $apple, true);
197199
$io->write('Ball ' . $ball, true);
198200

199-
// ...
201+
// more codes ...
202+
203+
// If you return integer from here, that will be taken as exit error code
200204
}
201205
}
202206

0 commit comments

Comments
 (0)