Skip to content

Commit

Permalink
heroku overrides array is a proper flag type
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Mar 28, 2019
1 parent a4ea2f1 commit 3e8e06d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/commands/shane/heroku/repo/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default class HerokuRepoDeploy extends SfdxCommand {
public static description = 'deploy a heroku app that has a valid app.json. ';

public static examples = [
`sfdx shane:heroku:repo:deploy -g someUser -r someRepo -u
`sfdx shane:heroku:repo:deploy -g someUser -r someRepo
// deploys code from https://github.com/someUser/someRepo that has a valid app.json
`
];
Expand Down Expand Up @@ -63,8 +63,7 @@ export default class HerokuRepoDeploy extends SfdxCommand {

// fs.ensureDirSync(tmpDir);
if (this.flags.overrides) {
// console.log(this.flags.overrides);
for (const override of this.flags.overrides.split(',')) {
for (const override of this.flags.overrides) {
console.log(override);
body.overrides.env[override.split('=')[0]] = override.split('=')[1];
}
Expand Down

0 comments on commit 3e8e06d

Please sign in to comment.