Skip to content

Commit

Permalink
update trigger-events
Browse files Browse the repository at this point in the history
  • Loading branch information
Itai Gendler authored and Itai Gendler committed Mar 13, 2018
1 parent 0f55a94 commit 296eaa2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
theme = "docdock"
baseurl = "http://cli.codefresh.io"
baseurl = "https://cli.codefresh.io"
title = "Codefresh CLI Documentation"
publishDir = "../public"
languageCode = "en-us"
Expand Down
8 changes: 5 additions & 3 deletions lib/interface/cli/commands/trigger/event/create.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ const command = new Command({
.option('context', {
describe: 'context with credentials required to setup event on remote system',
})
.example('codefresh create trigger-event --type registry --kind dockerhub --secret XYZ1234 --value namespace=codefresh --value name=fortune --context dockerhub', 'Create registry/dockerhub trigger-event')
.example('codefresh create trigger-event --type cron --kind codefresh --secret XYZ1234 --value expression="0 0 */1 * * *" --value message=hello', 'Create cron (once in hour) trigger-event')
.example('codefresh create trigger-event --type cron --kind codefresh --secret XYZ1234 --value expression="@daily" --value message=hello-all', 'Create public daily cron trigger-event');
.example('codefresh create trigger-event --type registry --kind dockerhub --value namespace=codefresh --value name=fortune --value action=push', 'Create registry/dockerhub trigger-event')
.example('codefresh create trigger-event --type cron --kind codefresh --value expression="0 0 */1 * * *" --value message=hello', 'Create cron (once in hour) trigger-event')
.example('codefresh create trigger-event --type cron --kind codefresh --value expression="@daily" --value message=hello-all', 'Create daily cron trigger-event')
.example('codefresh create trigger-event --type git --kind github --value owner=codefresh-io --value name=cf-api --value action=push', 'Create git trigger-event');

},
handler: async (argv) => {
const values = prepareKeyValueFromCLIEnvOption(argv.value);
Expand Down
2 changes: 1 addition & 1 deletion lib/interface/cli/commands/trigger/type/get.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const getRoot = require('../../root/get.cmd');
const command = new Command({
command: 'trigger-types',
parent: getRoot,
description: 'Get a list of system-wide available `trigger-types` or specified `trigger-type`',
description: 'Get a list of available trigger-types',
webDocs: {
category: 'Triggers',
title: 'Get Trigger Types',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codefresh",
"version": "0.8.32",
"version": "0.8.33",
"description": "Codefresh command line utility",
"main": "index.js",
"preferGlobal": true,
Expand Down

0 comments on commit 296eaa2

Please sign in to comment.