Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #39 from smp/master
Browse files Browse the repository at this point in the history
Closes #32
  • Loading branch information
wizage authored Nov 6, 2019
2 parents 1c30418 + f58558e commit e87722f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 11 deletions.
7 changes: 4 additions & 3 deletions amplify-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
"type": "category",
"commands": [
"add",
"help",
"get-info",
"help",
"push",
"remove",
"setup-obs",
"setup",
"setup-obs",
"start",
"stop",
"update"
"update",
"version"
]
}
20 changes: 12 additions & 8 deletions commands/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,20 @@ module.exports = {
description: `Takes you through a CLI flow to add a ${featureName} resource to your local backend`,
},
{
name: 'update',
description: `Takes you through a CLI flow to update a ${featureName} resource`,
name: 'get-info',
description: `Gets info for ${featureName} resource from the CloudFormation template`,
},
{
name: 'push',
description: `Provisions ${featureName} cloud resources and it's dependencies with the latest local developments`,
},
{
name: 'get-info',
description: `Gets info for ${featureName} resource from the CloudFormation template`,
name: 'remove',
description: `Removes ${featureName} resource from your local backend and will remove them on amplify push`,
},
{
name: 'setup-obs',
description: 'Sets up OBS with your stream settings.',
},
{
name: 'start',
Expand All @@ -40,12 +44,12 @@ module.exports = {
description: `Puts your ${featureName} stream into an idle state`,
},
{
name: 'remove',
description: `Removes ${featureName} resource from your local backend and will remove them on amplify push`,
name: 'update',
description: `Takes you through a CLI flow to update a ${featureName} resource`,
},
{
name: 'setup-obs',
description: 'Sets up OBS with your stream settings.',
name: 'version',
description: `Prints the version of Amplify Video that you are using`,
},
];

Expand Down
11 changes: 11 additions & 0 deletions commands/video/version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const fs = require('fs');
const serviceMetadata = JSON.parse(fs.readFileSync(`${__dirname}/../../package.json`));
const subcommand = 'version';
const category = 'video';

module.exports = {
name: subcommand,
run: async (context) => {
context.print.info('amplify-category-video@' + serviceMetadata.version);
}
}

0 comments on commit e87722f

Please sign in to comment.