Skip to content

Commit 8eec353

Browse files
Itai GendlerItai Gendler
Itai Gendler
authored and
Itai Gendler
committed
Update get context handler to show the underlying data
1 parent 78f18fc commit 8eec353

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const getRoot = require('../root/get.cmd');
1111
const command = new Command({
1212
command: 'contexts [name]',
1313
aliases: ['ctx', 'context'],
14-
description: 'get-contexts',
14+
description: 'Get contexts',
1515
builder: (yargs) => {
1616
return yargs
1717
.positional('name', {

lib/logic/api/context.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const _extractFieldsForContextEntity = context => ({
99
name: context.metadata.name,
1010
owner: context.owner,
1111
type: context.spec.type,
12+
spec: context.spec,
1213
});
1314

1415

lib/logic/entities/Context.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ class Context extends Entity {
66
super();
77
this.entityType = 'context';
88
this.info = data;
9-
this.defaultColumns = ['apiVersion', 'kind', 'name'];
10-
this.wideColumns = ['apiVersion', 'kind', 'name', 'owner', 'type'];
9+
this.defaultColumns = ['name', 'type'];
10+
this.wideColumns = this.defaultColumns.concat(['owner']);
1111
}
1212

1313
// get the type of the context from spec.type

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.6.1",
3+
"version": "0.6.3",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)