Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix vip app #2144

Merged
merged 1 commit into from
Dec 9, 2024
Merged
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
10 changes: 2 additions & 8 deletions src/bin/vip-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import app from '../lib/api/app';
import command, { getEnvIdentifier } from '../lib/cli/command';
import { trackEvent } from '../lib/tracker';

command( { requiredArgs: 1 } )
command( { requiredArgs: 1, format: true } )
.example(
'vip app list',
'Retrieve a list of applications that can be accessed by the current authenticated VIP-CLI user.'
Expand Down Expand Up @@ -59,12 +59,6 @@ command( { requiredArgs: 1 } )
// Clone the read-only response object so we can modify it
const clonedResponse = Object.assign( {}, res );

const header = [
{ key: 'id', value: res.id },
{ key: 'name', value: res.name },
{ key: 'repo', value: res.repo },
];

clonedResponse.environments = clonedResponse.environments.map( env => {
const clonedEnv = Object.assign( {}, env );

Expand All @@ -87,5 +81,5 @@ command( { requiredArgs: 1 } )
return clonedEnv;
} );

return { header, data: clonedResponse.environments };
return clonedResponse.environments;
} );
Loading