2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-10 09:02:10 +00:00

added repo-name option to release command

This commit is contained in:
Revant Nandgaonkar 2016-05-17 14:41:52 +05:30 committed by Anand Doshi
parent 4a60de9268
commit 08e65f7881

View File

@ -121,8 +121,9 @@ def backup_all_sites():
@click.option('--develop', default='develop') @click.option('--develop', default='develop')
@click.option('--master', default='master') @click.option('--master', default='master')
@click.option('--owner', default='frappe') @click.option('--owner', default='frappe')
def release(app, bump_type, develop, master, owner): @click.option('--repo-name')
def release(app, bump_type, develop, master, owner, repo_name):
"Release app (internal to the Frappe team)" "Release app (internal to the Frappe team)"
from bench.release import release from bench.release import release
repo = os.path.join('apps', app) repo = os.path.join('apps', repo_name) if repo_name else os.path.join('apps', app)
release(repo, bump_type, develop, master, owner) release(repo, bump_type, develop, master, owner)