mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 07:21:04 +01:00
Refactor subcommand addition for sharing. (#4474)
Trying to standardize the setup a little more.
This commit is contained in:
@@ -8,13 +8,16 @@
|
||||
|
||||
namespace Carbon {
|
||||
|
||||
constexpr CommandLine::CommandInfo LanguageServerSubcommand::Info = {
|
||||
static constexpr CommandLine::CommandInfo SubcommandInfo = {
|
||||
.name = "language-server",
|
||||
.help = R"""(
|
||||
Runs the language server.
|
||||
)""",
|
||||
};
|
||||
|
||||
LanguageServerSubcommand::LanguageServerSubcommand()
|
||||
: DriverSubcommand(SubcommandInfo) {}
|
||||
|
||||
auto LanguageServerSubcommand::Run(DriverEnv& driver_env) -> DriverResult {
|
||||
// TODO: Consider a way to override stdin, but it's a `FILE*` so less
|
||||
// convenient to work with.
|
||||
|
||||
Reference in New Issue
Block a user