pub mod config;
pub mod conn;
pub mod contract;
pub mod data;
pub mod history;
pub mod input;
pub mod meta;
pub mod query;
pub mod query_change;
pub mod query_read;
pub mod schema;
pub mod server;
use crate::cli::Command;
use crate::error::Failure;
pub const SERVED_LEAVES: [&str; 63] = [
"config doctor",
"config get",
"config list",
"config path",
"config set",
"config unset",
"conn add",
"conn default",
"conn edit",
"conn list",
"conn remove",
"conn show",
"conn test",
"data export",
"data import",
"history as-of",
"history between",
"history tables",
"meta commands",
"meta completions",
"meta manual",
"meta schema",
"meta version",
"query analyze",
"query call",
"query explain",
"query file",
"query lineage",
"query named list",
"query named remove",
"query named run",
"query named save",
"query plan",
"query run",
"query sample",
"query tx",
"schema columns",
"schema checks",
"schema count",
"schema databases",
"schema ddl",
"schema events",
"schema grants",
"schema indexes",
"schema keys",
"schema map",
"schema partitions",
"schema routines",
"schema search",
"schema sequences",
"schema size",
"schema stats",
"schema tables",
"schema triggers",
"schema views",
"server capabilities",
"server kill",
"server locks",
"server processes",
"server queries",
"server replica",
"server status",
"server variables",
];
#[must_use]
pub fn not_yet_served(command: &Command) -> Failure {
Failure::usage(
"usage.not_yet_served",
format!(
"`{}` is published but not served by this build",
command.published_name()
),
)
.with_detail("detail", command.published_name())
.with_hint("run `meta commands` to see which commands this build serves")
}