From 296eaa2e49a6bff2958f6f07f11cf30f7c678d38 Mon Sep 17 00:00:00 2001 From: Itai Gendler Date: Tue, 13 Mar 2018 17:41:00 +0200 Subject: [PATCH] update trigger-events --- docs/config.toml | 2 +- lib/interface/cli/commands/trigger/event/create.cmd.js | 8 +++++--- lib/interface/cli/commands/trigger/type/get.cmd.js | 2 +- package.json | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/config.toml b/docs/config.toml index 87081fca0..4e06578ca 100644 --- a/docs/config.toml +++ b/docs/config.toml @@ -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" diff --git a/lib/interface/cli/commands/trigger/event/create.cmd.js b/lib/interface/cli/commands/trigger/event/create.cmd.js index 8cd82b8f7..b5a8082e7 100644 --- a/lib/interface/cli/commands/trigger/event/create.cmd.js +++ b/lib/interface/cli/commands/trigger/event/create.cmd.js @@ -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); diff --git a/lib/interface/cli/commands/trigger/type/get.cmd.js b/lib/interface/cli/commands/trigger/type/get.cmd.js index 0518676dd..f2ffe41d1 100644 --- a/lib/interface/cli/commands/trigger/type/get.cmd.js +++ b/lib/interface/cli/commands/trigger/type/get.cmd.js @@ -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', diff --git a/package.json b/package.json index b586052a5..c675526b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codefresh", - "version": "0.8.32", + "version": "0.8.33", "description": "Codefresh command line utility", "main": "index.js", "preferGlobal": true,