chore: updated docstrings for command APIs
This commit is contained in:
parent
85d86fbedf
commit
ed344ae8cf
2 changed files with 6 additions and 2 deletions
|
|
@ -260,6 +260,7 @@ def migrate(context, rebuild_website=False, skip_failing=False):
|
|||
@click.argument('frappe_provider')
|
||||
@pass_context
|
||||
def migrate_to(context, frappe_provider):
|
||||
"Migrates site to the specified provider"
|
||||
from frappe.integrations.frappe_providers import migrate_to
|
||||
for site in context.sites:
|
||||
migrate_to(site, frappe_provider)
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ from terminaltables import AsciiTable
|
|||
|
||||
@functools.lru_cache(maxsize=1024)
|
||||
def get_first_party_apps():
|
||||
"""Get list of all apps under orgs: frappe. erpnext from GitHub"""
|
||||
apps = []
|
||||
for org in ["frappe", "erpnext"]:
|
||||
req = requests.get(f"https://api.github.com/users/{org}/repos", {"type": "sources", "per_page": 200})
|
||||
|
|
@ -17,15 +18,17 @@ def render_table(data):
|
|||
print(AsciiTable(data).table)
|
||||
|
||||
|
||||
def padme(me):
|
||||
def add_line_after(function):
|
||||
"""Adds an extra line to STDOUT after the execution of a function this decorates"""
|
||||
def empty_line(*args, **kwargs):
|
||||
result = me(*args, **kwargs)
|
||||
result = function(*args, **kwargs)
|
||||
print()
|
||||
return result
|
||||
return empty_line
|
||||
|
||||
|
||||
def log(message, colour=''):
|
||||
"""Coloured log outputs to STDOUT"""
|
||||
colours = {
|
||||
"nc": '\033[0m',
|
||||
"blue": '\033[94m',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue