Skip to main content

actr_cli/commands/
mod.rs

1//! Command implementations for actr-cli.
2//!
3//! All commands implement [`crate::core::Command`]; dispatch happens in
4//! `crate::cli::run`.
5
6pub mod build;
7pub mod check;
8pub mod codegen;
9pub mod completion;
10pub mod config;
11pub mod deps;
12pub mod discovery;
13pub mod dlq;
14pub mod doc;
15pub mod fingerprint;
16pub mod generate;
17pub mod init;
18pub mod initialize;
19pub mod install;
20pub mod logs;
21pub(crate) mod package_build;
22pub mod pkg;
23pub(crate) mod process;
24pub mod ps;
25pub mod registry;
26pub mod restart;
27pub mod rm;
28pub mod run;
29#[cfg(any(test, feature = "test-utils"))]
30pub mod runtime_state;
31#[cfg(not(any(test, feature = "test-utils")))]
32pub(crate) mod runtime_state;
33pub mod start;
34pub mod stop;
35pub mod version;
36
37use clap::ValueEnum;
38
39/// Supported languages for CLI commands.
40#[derive(Debug, Clone, Copy, PartialEq, Eq, ValueEnum, serde::Serialize, serde::Deserialize)]
41pub enum SupportedLanguage {
42    Rust,
43    Python,
44    Swift,
45    Kotlin,
46    #[value(name = "typescript")]
47    TypeScript,
48}
49
50pub use build::BuildCommand;
51pub use check::CheckCommand;
52pub use completion::CompletionCommand;
53pub use config::ConfigCommand;
54pub use deps::DepsArgs;
55pub use dlq::DlqArgs;
56pub use doc::DocCommand;
57pub use generate::GenCommand;
58pub use init::InitCommand;
59pub use logs::LogsCommand;
60pub use pkg::PkgArgs;
61pub use ps::PsCommand;
62pub use registry::RegistryArgs;
63pub use restart::RestartCommand;
64pub use rm::RmCommand;
65pub use run::RunCommand;
66pub use start::StartCommand;
67pub use stop::StopCommand;
68pub use version::VersionCommand;