Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
move command to apps:fork
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jul 22, 2016
1 parent ad3ba11 commit ef03bea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 5 additions & 3 deletions commands/fork.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,9 @@ function* run (context, heroku) {
}
}

module.exports = {
topic: 'fork',
const cmd = {
needsAuth: true,
description: 'Fork an existing app into a new one',
description: 'fork an existing app into a new one',
help: `Copy config vars and Heroku Postgres data, and re-provision add-ons to a new app.
New app name should not be an existing app. The new app will be created as part of the forking process.
Expand All @@ -126,3 +125,6 @@ Example:
args: [{name: 'NEWNAME', optional: true, hidden: true}],
run: cli.command({preauth: true}, co.wrap(run))
};

exports.apps = Object.assign({topic: 'fork', hidden: true}, cmd);
exports.root = Object.assign({topic: 'apps', command: 'fork'}, cmd);
8 changes: 3 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
exports.topic = {
name: 'fork',
description: 'clone an existing app'
};
'use strict';

exports.commands = [
require('./commands/fork')
require('./commands/fork').apps,
require('./commands/fork').root
];

0 comments on commit ef03bea

Please sign in to comment.