spl_forge/commands/
help.rs1use crate::common::theme;
2
3pub struct Help;
4
5impl Help {
6 pub async fn help_log() -> anyhow::Result<()> {
7 let commands = [
8 ("config", "Securely connect your wallet and set defaults."),
9 ("create", "Forge new SPL tokens, markets, and liquidity pools."),
10 ("wallet", "Inspect wallet details and request local/devnet airdrops."),
11 ("help", "Show this help message."),
12 ];
13
14 println!();
15 println!("{}", theme::app_name("SPL-FORGE"));
16 println!(
17 " {}",
18 theme::muted("Forge on-chain assets. The essential CLI for creating, analyzing, and deploying SPL tokens.")
19 );
20 println!();
21
22 println!("{}", theme::heading("Commands:"));
23 for (command, description) in commands {
24 let formatted_line = format!(
25 " {:<12} {}",
26 theme::command(command),
27 theme::muted(description)
28 );
29 println!("{}", formatted_line);
30 }
31 println!();
32
33 Ok(())
34 }
35}