Skip to content
This repository has been archived by the owner on May 15, 2019. It is now read-only.

Commit

Permalink
Fix help message documentation (#219)
Browse files Browse the repository at this point in the history
* Remove unreachable code

* Use correct source option in deploy examples
  • Loading branch information
gfilliere authored and jmdobry committed Nov 16, 2018
1 parent 78385cd commit 61216c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/cli/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,6 @@ class Controller {
})
.then(resolve, reject);
}

throw new Error('One of "local-path" or "source-path" must be set!');
})
.then((cloudfunction) => {
if (opts.triggerHttp) {
Expand Down
6 changes: 3 additions & 3 deletions src/cli/examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ exports.delete = [

exports.deploy = [
['cd /path/to/src; functions deploy helloWorld --trigger-http'],
['functions deploy helloWorld --local-path=/path/to/src --trigger-http'],
['functions deploy testHelloWorld -l=/path/to/src --entry-point=helloWorld --trigger-http'],
['functions deploy helloWorld --source=/path/to/src --trigger-http'],
['functions deploy testHelloWorld -S=/path/to/src --entry-point=helloWorld --trigger-http'],
['cd /path/to/src; functions deploy helloGCS --trigger-bucket=my-bucket'],
['functions deploy helloPubSub -l=/path/to/src --trigger-topic=my-topic']
['functions deploy helloPubSub -S=/path/to/src --trigger-topic=my-topic']
];

exports.describe = [
Expand Down

0 comments on commit 61216c7

Please sign in to comment.