Skip to content

Commit 54cfbdc

Browse files
committed
Pull destroy command out from deploy file
1 parent 370930b commit 54cfbdc

File tree

8 files changed

+373
-298
lines changed

8 files changed

+373
-298
lines changed

linkup-cli/src/commands/deploy/cf_api.rs renamed to linkup-cli/src/commands/deploy/api.rs

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
use reqwest::{header::HeaderMap, multipart, Client};
1+
use reqwest::{multipart, Client};
22
use serde::{Deserialize, Serialize};
33
use serde_json::json;
44

55
use super::{
6-
cf_auth::CloudflareApiAuth,
7-
cf_deploy::{DNSRecord, WorkerMetadata, WorkerScriptInfo, WorkerScriptPart},
6+
auth::CloudflareApiAuth,
7+
resources::{DNSRecord, Rule, WorkerMetadata, WorkerScriptInfo, WorkerScriptPart},
88
DeployError,
99
};
1010

@@ -222,15 +222,6 @@ struct ZoneInfo {
222222
status: String,
223223
}
224224

225-
#[derive(Serialize, Deserialize, Debug, Clone)]
226-
pub struct Rule {
227-
pub action: String,
228-
pub description: String,
229-
pub enabled: bool,
230-
pub expression: String,
231-
pub action_parameters: Option<serde_json::Value>,
232-
}
233-
234225
#[derive(Serialize, Deserialize, Debug, Clone)]
235226
pub struct RulesetListResponse {
236227
pub result: Option<Vec<ListRuleset>>,

0 commit comments

Comments
 (0)