Skip to content

Investigate requiring -a flag for all renaming operations #3200

@justinwilaby

Description

@justinwilaby

The following comment was made on #3110 - This issue is to track this request and investigate

//-----------------------------------------

My apologies @eablack - In this case the -a flag is needed which I unintentionally omitted in the test instructions. Please try again with the updated instructions.

@justinwilaby I was playing with this today and found if I'm inside my apps git repository, and have a heroku remote, I can run heroku apps:rename new-example-app without -a, and so still get the behaviour of the remote being deleted. If I don't have a remote, it does give the Missing required flag app error.

I wonder if -a should be required, even when you have a single heroku remote, if that's the only way to ensure the renaming happens? CLI help does already say that it is: (-a, --app=<value> (required) app to run command against) but seems not in this circumstance (similar to heroku apps:info, etc).

I guess even nicer would be if it renamed it without -a in circumstances where that is allowed (I assume when there is only one remote?).

Originally posted by @jmasson in #3110 (comment)

//-------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions