`application-cli` binary — scaffolds, migrates, bootstraps, and diagnoses framework apps assembled from application-core + application-engine
| Tier | application |
| Role | unclassified (baselined) |
| Path | crates/application/cli |
| Edition | 2021 |
| Targets | application-cli, dive_shop_e2e |
| Public items | 1 across 0 modules |
| Tests | 24 |
What it is for
application-cli CLI binary — Sprint 35B.
Frappe-bench-style binary that scaffolds + operates framework apps assembled via application-cli-control. Per D-35B.3, supports both flag-driven scripted invocation (application-cli new --vertical=dive-shop my-site) and interactive wizard fallback (application-cli new alone drops into a dialoguer wizard that fills in gaps).
Capabilities
PagesCmd
application-cli CLI binary — Sprint 35B.
| Item |
|---|
pub enum PagesCmd |
How to use it
No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.
Module structure
No public modules: the crate root is its whole surface.
Public surface
`crate root`
| Item | What it is |
|---|---|
pub enum PagesCmd | application-cli pages … subcommands (Sprint 0.35 T-0.35.5). |
No pub use re-exports: every item above is declared in this crate.
Boundary
Depends on no other workspace tier.
Shares tier application with 120 other crates: application-agreements, application-ai, application-analytics, application-approvals, application-assessments, application-audit-log, application-auth, application-billing, … (120 total).
_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._
Where it sits
| Tier (ontology) | application |
| Architectural role (taxonomy) | unclassified (baselined) |
| Location | crates/application/cli |
| Vocabulary in force (lexicon) | current |
Dependencies
Runtime, in this workspace.
| Crate | Tier | Optional | Only on |
|---|---|---|---|
| `application-audit-log` | application | no | always |
| `application-auth` | application | no | always |
| `application-cms` | application | no | always |
| `application-core` | application | no | always |
| `application-engine` | application | no | always |
Runtime, from outside the workspace.
| Crate | Requirement | Features | Optional | Only on |
|---|---|---|---|---|
anyhow | ^1 | — | no | always |
chrono | ^0.4 | serde | no | always |
clap | ^4 | derive | no | always |
console | ^0.15 | — | no | always |
dialoguer | ^0.11 | — | no | always |
dirs | ^5 | — | no | always |
include_dir | ^0.7 | — | no | always |
serde | ^1 | derive | no | always |
serde_json | ^1 | — | no | always |
sqlx | ^0.8 | runtime-tokio, postgres, chrono, uuid, json, postgres, … (9 total) | no | always |
tera | ^1 | — | no | always |
thiserror | ^2 | — | no | always |
tokio | ^1 | full | no | always |
toml | ^0.8 | — | no | always |
uuid | ^1 | v4, v7, serde, js | no | always |
walkdir | ^2 | — | no | always |
Development, from outside the workspace.
| Crate | Requirement | Features | Optional | Only on |
|---|---|---|---|---|
tempfile | ^3 | — | no | always |
Build. None.
Depended on by. Nothing in this workspace.
Signal flow — what reaches this crate, and what it reaches.
flowchart LR SELF["application-cli"] SELF -->|runtime| n_application_audit_log["application-audit-log"] SELF -->|runtime| n_application_auth["application-auth"] SELF -->|runtime| n_application_cms["application-cms"] SELF -->|runtime| n_application_core["application-core"] SELF -->|runtime| n_application_engine["application-engine"] classDef self fill:#1f883d,stroke:#1f883d,color:#fff; class SELF self;
Feature flags
No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.
Targets
| Kind | Name | Source |
|---|---|---|
| bin | application-cli | `src/main.rs` |
| test | dive_shop_e2e | `tests/dive_shop_e2e.rs` |
Error model
No public error type was detected: no public item declares a type named *Error, and no public signature returns one.
Operational characteristics
| Property | Evidence |
|---|---|
| async public surface | none detected |
| async runtime | yes |
| database access | yes |
| network I/O | none detected |
| unsafe code | none detected |
| environment variables | yes |
No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.
Configuration
| Variable | Read in |
|---|---|
DATABASE_URL | src/commands/bootstrap.rs |
HOSTNAME | src/selfaudit.rs |
LOGNAME | src/selfaudit.rs |
USER | src/selfaudit.rs |
Related capabilities
No workspace crate depends on this one.
Verification
| Kind | Count |
|---|---|
| Unit tests | 23 |
| Integration tests | 1 |
| Examples | 0 |
| Doctests | 0 |
Evidence by module. How often each public module is named by something executable.
| Module | Tests | Examples | Consumers |
|---|---|---|---|
crate root | 1 | 0 | 0 |
What the tests establish, by name:
dive_shop_full_flow—tests/dive_shop_e2e.rsappends_new_module_to_staff_surface—src/commands/add_module.rscustomer_only_module_goes_to_customer—src/commands/add_module.rsdual_surface_module_goes_to_both—src/commands/add_module.rsduplicate_add_is_noop—src/commands/add_module.rsemail_validator_accepts_simple_address—src/commands/bootstrap.rsemail_validator_rejects_no_at_sign—src/commands/bootstrap.rspassword_validator_requires_12_chars—src/commands/bootstrap.rsa_document_written_before_the_rename_is_edited_in_place—src/commands/mod.rsan_empty_document_gets_the_current_name—src/commands/mod.rsthe_current_section_is_addressed—src/commands/mod.rsthe_current_section_wins_when_a_document_carries_both—src/commands/mod.rsname_validator_accepts_safe_chars—src/commands/new.rsname_validator_rejects_unsafe_chars—src/commands/new.rsresolve_vertical_accepts_known_in_non_interactive—src/commands/new.rsresolve_vertical_rejects_unknown_in_non_interactive—src/commands/new.rsabsent_module_returns_false—src/commands/remove_module.rsremoves_present_module—src/commands/remove_module.rsoperator_format_basic—src/selfaudit.rsoperator_format_degrades_to_unknown—src/selfaudit.rsoperator_format_trims—src/selfaudit.rsoperator_identity_is_cli_prefixed—src/selfaudit.rsavailable_verticals_match_baked_dirs—src/templates.rsstrip_tera_suffix_drops_only_trailing_tera—src/templates.rs
Documentation coverage
| Measure | Documented | Total |
|---|---|---|
| Public items with rustdoc | 1 | 1 |
Public modules with a //! block | 0 | 0 |
pie showData
title Public items with rustdoc
"Documented" : 1
"No rustdoc detected" : 0
Metrics
| Metric | Value |
|---|---|
| Rust source files | 16 |
| Source lines | 2503 |
| Code lines | 1909 |
| Public API items | 1 |
| Public modules | 0 |
| Tests | 24 |
| Examples | 0 |
| Cargo features | 0 |
| Direct runtime dependencies | 21 |
| Workspace reverse dependencies | 0 |
pie showData
title Public API by kind
"enum" : 1
pie showData
title Rust source composition
"Code" : 1909
"Blank or comment" : 594
Generation
Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.