Add optional reponame argument to create_from_local subcommand
Mert Dirik
Branch: mdirik/bitbucket-cli:master
mdirik/bitbucket-cli:master
Branch: zhemao/bitbucket-cli:master
zhemao/bitbucket-cli:master
Declined
#17 · Created  · Last updated
Declined pull request
Closed by: Howard Mao·2015-12-21
Description
I like to have my repositories more structurally named in Bitbucket so the repositories I create tend to have different remote names then the directory name they reside in.
Creating repo with create then setting remotes manually and pushing is a workaround but it seems not efficient when we already have create_from_local command for that.
So I added the support for an optional reponame positional argument to create_from_local. When specified, it is used as the remote repository name instead of the directory name. When not specified, create_from_local performs as normal.
I like to have my repositories more structurally named in Bitbucket so the repositories I create tend to have different remote names then the directory name they reside in.
Creating repo with create then setting remotes manually and pushing is a workaround but it seems not efficient when we already have create_from_local command for that.
So I added the support for an optional reponame positional argument to create_from_local. When specified, it is used as the remote repository name instead of the directory name. When not specified, create_from_local performs as normal.