From 600f43886a9a4e6785f6dcb5974ddeec9116384f Mon Sep 17 00:00:00 2001 From: 2nthony Date: Wed, 13 Jul 2022 02:09:20 +0800 Subject: [PATCH] fix(command): root await (#13) --- src/commands/root.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/root.ts b/src/commands/root.ts index 53851b9..a354609 100644 --- a/src/commands/root.ts +++ b/src/commands/root.ts @@ -3,8 +3,8 @@ import { PluginApi } from '../types' export const root: PluginApi = { extend(api) { - api.cli.command('root', 'Alias to `ghq config --get.root`').action(() => { - const { root } = resolveConfig() + api.cli.command('root', `Show repositories' root`).action(async () => { + const { root } = await resolveConfig() console.info(root) }) },