pub enum Commands {
Init,
Check {
diff: bool,
format: OutputFormat,
},
Update {
dry_run: bool,
watch: bool,
},
List,
Lsp,
Mcp,
}Variants§
Init
Initialize mdt in a project by creating a sample template file.
Check
Check that all consumer blocks are up to date.
Exits with a non-zero status code if any consumer blocks are stale. Use this in CI to ensure documentation stays synchronized.
Fields
format: OutputFormatOutput format for check results.
Update
Update all consumer blocks with the latest provider content.
Reads provider blocks from *.t.md template files and replaces matching consumer blocks in all scanned files.
Fields
List
List all provider and consumer blocks in the project.
Lsp
Start the mdt language server (LSP).
Communicates over stdin/stdout using the Language Server Protocol.
Configure your editor to run mdt lsp as the language server
command for markdown and template files.
Mcp
Start the mdt MCP (Model Context Protocol) server.
Communicates over stdin/stdout using the Model Context Protocol.
Configure your AI assistant to run mdt mcp as an MCP server
to give it structured access to mdt’s template system.
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for Commands
impl Subcommand for Commands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand