add doc comments

This commit is contained in:
naskya 2024-06-20 08:17:13 +09:00
parent 49dacb2418
commit c734380cfe
Signed by: naskya
GPG key ID: 712D413B3A9FED5C
6 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,5 @@
//! `config` subcommand
mod migrate; mod migrate;
mod validate; mod validate;

View file

@ -1,3 +1,5 @@
//! `config migrate` subcommand
mod v20240701; mod v20240701;
use super::ConfigVersion; use super::ConfigVersion;

View file

@ -1,3 +1,5 @@
//! `config migrate 20240701` subcommand
use sqlx::{postgres::PgConnectOptions, ConnectOptions}; use sqlx::{postgres::PgConnectOptions, ConnectOptions};
use std::{collections::HashMap, env, fs, io::Read}; use std::{collections::HashMap, env, fs, io::Read};
use yaml_rust::{Yaml, YamlLoader}; use yaml_rust::{Yaml, YamlLoader};

View file

@ -1,3 +1,5 @@
//! `config validate` subcommand
use crate::config::{client, server}; use crate::config::{client, server};
use std::{env, fs, io::Read}; use std::{env, fs, io::Read};
use validator::{Validate, ValidationErrors}; use validator::{Validate, ValidationErrors};

View file

@ -1,3 +1,5 @@
//! Subcommand implementations
pub(crate) mod config; pub(crate) mod config;
pub(crate) mod version; pub(crate) mod version;

View file

@ -1,3 +1,5 @@
//! `version` subcommand
use color_print::cprintln; use color_print::cprintln;
pub(crate) fn run() { pub(crate) fn run() {