@iterm2.StatusBarRPC
async def coro(knobs):
    result = subprocess.run(['kubectl', 'config', 'current-context'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding='utf-8')
    tmpl = '⎈  {}'
    if (result.returncode != 0):
        return tmpl.format('Error')
    return tmpl.format(result.stdout.strip())
@iterm2.StatusBarRPC
async def coro(knobs):
    result = subprocess.run(['kubectl', 'config', 'current-context'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding='utf-8')
    tmpl = '⎈  {}'
    if (result.returncode != 0):
        return tmpl.format('Error')
    return tmpl.format(result.stdout.strip())