Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/interface/cli/commands/trigger/get.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ const command = new Command({
},
builder: (yargs) => {
yargs
.optional('pipeline', {
.option('pipeline', {
describe: 'pipeline id',
})
.optional('event-uri', {
.option('event-uri', {
describe: 'event URI',
});
},
Expand Down
2 changes: 1 addition & 1 deletion lib/interface/cli/commands/trigger/link.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const command = new Command({
const eventURI = argv['event-uri'];
/* eslint-enable prefer-destructuring */
await trigger.createTrigger(eventURI, pipeline);
console.log(`Trigger: ${eventURI} was successfully linked to the pipeline(s): ${pipeline}`);
console.log(`Trigger: ${eventURI} was successfully linked to the pipeline: ${pipeline}`);
},
});

Expand Down
4 changes: 2 additions & 2 deletions lib/logic/api/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const annotateImage = async (dockerImageId, annotations) => {
};

const addImageTag = async (options) => {
const image = await getImageById({ imageId: options.imageId });
const image = await getImageById({ id: options.imageId });
const imageId = image[0].info._id;
const RequestOptions = {
url: `/api/images/${encodeURIComponent(imageId)}/tag/${options.tag}`,
Expand All @@ -149,7 +149,7 @@ const addImageTag = async (options) => {
};

const untagImage = async (options) => {
const images = await getImageById({ imageId: options.imageId });
const images = await getImageById({ id: options.imageId });
const imageId = images[0].info._id;
const image = _.find(images, currimage => _.isEqual(currimage.info.tag, options.tag));
if (image) {
Expand Down