You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
271 B
12 lines
271 B
1 week ago
|
import click
|
||
|
import pyperclip
|
||
|
|
||
|
MBP_ISSUE_BASE = "Safeguard/MBP-issues"
|
||
|
|
||
|
|
||
|
@click.command()
|
||
|
@click.argument("issue", type=int)
|
||
|
def sg_mbp_issue_ref(issue):
|
||
|
reference = f"{MBP_ISSUE_BASE}#{issue}"
|
||
|
pyperclip.copy(f"{MBP_ISSUE_BASE}#{issue}")
|
||
|
click.echo(reference)
|