Skip to content

Commit ed5364c

Browse files
committed
Refactor language-server command to use ThemeCommand's run method
Previously `theme language-server` command implemented its own `run` logic. This commit refactors `language-server` to use ThemeCommand's base `run()` method. This will help to standardize command architecture and allow for out of the box authentication and environments support
1 parent 2375b66 commit ed5364c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/theme/src/cli/commands/theme/language-server.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ export default class LanguageServer extends ThemeCommand {
1313
...globalFlags,
1414
}
1515

16-
async run(): Promise<void> {
17-
await this.parse(LanguageServer)
16+
async command() {
1817
startServer()
1918
}
2019
}

0 commit comments

Comments
 (0)