summaryrefslogtreecommitdiffstats
path: root/src/usecase/mod.rs
diff options
context:
space:
mode:
authoraur-build <aur-build@localhost>2026-11-23 13:44:20 +0000
committeraur-build <aur-build@localhost>2026-11-23 13:44:20 +0000
commit4c143e969dcd7b6a18e5a86f9a754c9b62979ccf (patch)
treec61c2274e3810669cef8319cf9980cbbe031f840 /src/usecase/mod.rs
parent053dfbca8a4955a616e9b2c0f5a5d664c0db7aef (diff)
downloadaur-build-4c143e969dcd7b6a18e5a86f9a754c9b62979ccf.tar.gz
aur-build-4c143e969dcd7b6a18e5a86f9a754c9b62979ccf.zip
usecase,http,pipeline,ops: keep the contract, drop the argument
A workflow's doc now says what it guarantees and stops defending its existence: `subscribe` resolves the repo row, `approve` queues what the approval buys, a per-item failure comes back as a value instead of a panic. The history of which front end used to open-code it is gone. The last census-war notes go with it — three places that explained why a name in a test string was not a caller.
Diffstat (limited to 'src/usecase/mod.rs')
-rw-r--r--src/usecase/mod.rs21
1 files changed, 3 insertions, 18 deletions
diff --git a/src/usecase/mod.rs b/src/usecase/mod.rs
index 288d71d..25f745c 100644
--- a/src/usecase/mod.rs
+++ b/src/usecase/mod.rs
@@ -1,21 +1,6 @@
-//! The workflows themselves — the thing between a front end and the modules.
-//!
-//! Before this module existed, a workflow had one implementation per front end.
-//! `main` opened the repository inline before its command match; `serve` opened
-//! it again; the web routes wrote subscriptions and retried builds with their
-//! own `db::` calls, so the CLI and the UI could drift and nothing would notice
-//! until a reviewer saw one behaviour in the browser and another in the
-//! terminal.
-//!
-//! A function here is a workflow only if more than one step has to happen in a
-//! particular order. `subscribe` is a workflow because the repo row has to be
-//! resolved first and a first detection may have to follow. `candidate_by_id`
-//! is not, and stays where it is.
-//!
-//! Nothing in here formats output or knows a terminal, a form or a status code
-//! exists. Results carry enough structure for each front end to say the same
-//! facts in its own voice — which is why `Approved` reports the queueing
-//! outcome rather than deciding whether a failed enqueue is fatal.
+//! The workflows between a front end and the modules: a function belongs here
+//! only when more than one step has to happen in a particular order. Nothing in
+//! here formats output or knows a terminal, a form or a status code exists.
mod bootstrap;
mod builds;