systemprompt_cli/commands/cloud/deploy/pipeline/
progress.rs1use std::path::Path;
11
12pub trait DeployProgress: Send + Sync {
13 fn event(&self, event: &DeployEvent<'_>);
14}
15
16#[derive(Debug, Clone, Copy)]
17pub enum DeployEvent<'a> {
18 ArtifactsResolved {
19 tenant_name: &'a str,
20 binary: &'a Path,
21 dockerfile: &'a Path,
22 },
23 RegistryAuthStarted,
24 RegistryAuthFinished,
25 ImageResolved {
26 image: &'a str,
27 },
28 BuildStarted,
29 BuildFinished,
30 PushSkipped,
31 PushStarted,
32 PushFinished,
33 SecretsPhaseStarted,
34 SecretsFileMissing,
35 SecretsSyncStarted,
36 SecretsSynced {
37 count: usize,
38 },
39 CredentialsSyncStarted,
40 CredentialsSynced {
41 count: usize,
42 },
43 ProfilePathConfigured,
44 DeployStarted,
45 Deployed {
46 status: &'a str,
47 app_url: Option<&'a str>,
48 },
49}