Skip to content

Commit a7ddf24

Browse files
fix_get_bug (#163)
1 parent 8a9d486 commit a7ddf24

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/interface/cli/commands/trigger/get.cmd.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ const command = new Command({
1616
},
1717
builder: (yargs) => {
1818
yargs
19-
.optional('pipeline', {
19+
.option('pipeline', {
2020
describe: 'pipeline id',
2121
})
22-
.optional('event-uri', {
22+
.option('event-uri', {
2323
describe: 'event URI',
2424
});
2525
},

lib/interface/cli/commands/trigger/link.cmd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const command = new Command({
3030
const eventURI = argv['event-uri'];
3131
/* eslint-enable prefer-destructuring */
3232
await trigger.createTrigger(eventURI, pipeline);
33-
console.log(`Trigger: ${eventURI} was successfully linked to the pipeline(s): ${pipeline}`);
33+
console.log(`Trigger: ${eventURI} was successfully linked to the pipeline: ${pipeline}`);
3434
},
3535
});
3636

lib/logic/api/image.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ const annotateImage = async (dockerImageId, annotations) => {
139139
};
140140

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

151151
const untagImage = async (options) => {
152-
const images = await getImageById({ imageId: options.imageId });
152+
const images = await getImageById({ id: options.imageId });
153153
const imageId = images[0].info._id;
154154
const image = _.find(images, currimage => _.isEqual(currimage.info.tag, options.tag));
155155
if (image) {

0 commit comments

Comments
 (0)