Skip to content

Commit 9d2db27

Browse files
committed
Remove Actions' description
1 parent 3fa5d81 commit 9d2db27

File tree

10 files changed

+7
-80
lines changed

10 files changed

+7
-80
lines changed

deploy-config.yaml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ pipelines:
3030
default: true
3131
actions:
3232
- title: Lint
33-
desc: Got from `Cargo Clippy`.
3433
info: cargo-clippy@0.1.0
3534
tags:
3635
- cargo
@@ -50,7 +49,6 @@ pipelines:
5049
show_success_output: true
5150
show_bash_c: true
5251
- title: Format
53-
desc: Format `.rs` files
5452
info: cargo-fmt@0.1.0
5553
tags:
5654
- rust
@@ -68,7 +66,6 @@ pipelines:
6866
show_bash_c: true
6967
only_when_fresh: false
7068
- title: Build
71-
desc: Got from `Cargo Build (Release)`. Build the Rust project with Cargo default settings in release mode
7269
info: cargo-rel@0.1
7370
tags:
7471
- rust
@@ -88,7 +85,6 @@ pipelines:
8885
show_success_output: false
8986
show_bash_c: true
9087
- title: Compress
91-
desc: Got from `UPX Compress`.
9288
info: upx@0.1.0
9389
tags:
9490
- upx
@@ -118,7 +114,6 @@ pipelines:
118114
type: plain
119115
value: target/release/deployer
120116
- title: Install to ~/.cargo/bin
121-
desc: ""
122117
info: install-to-cargo-bin@0.1.1
123118
tags:
124119
- cargo
@@ -158,7 +153,6 @@ pipelines:
158153
exclusive_exec_tag: ru
159154
actions:
160155
- title: Проверка качества кода
161-
desc: Got from `Cargo Clippy`.
162156
info: cargo-clippy@0.1.0
163157
tags:
164158
- cargo
@@ -178,7 +172,6 @@ pipelines:
178172
show_success_output: true
179173
show_bash_c: true
180174
- title: Форматирование кода
181-
desc: Format `.rs` files
182175
info: cargo-fmt@0.1.0
183176
tags:
184177
- rust
@@ -196,7 +189,6 @@ pipelines:
196189
show_bash_c: true
197190
only_when_fresh: false
198191
- title: Сборка
199-
desc: Got from `Cargo Build (Release)`. Build the Rust project with Cargo default settings in release mode
200192
info: cargo-rel@0.1
201193
tags:
202194
- rust
@@ -216,7 +208,6 @@ pipelines:
216208
show_success_output: false
217209
show_bash_c: true
218210
- title: Сжатие
219-
desc: Got from `UPX Compress`.
220211
info: upx@0.1.0
221212
tags:
222213
- upx
@@ -246,7 +237,6 @@ pipelines:
246237
type: plain
247238
value: target/release/deployer
248239
- title: Установка в ~/.cargo/bin
249-
desc: ""
250240
info: install-to-cargo-bin@0.1.1
251241
tags:
252242
- cargo
@@ -286,7 +276,6 @@ pipelines:
286276
exclusive_exec_tag: en-full
287277
actions:
288278
- title: Lint
289-
desc: Got from `Cargo Clippy`.
290279
info: cargo-clippy@0.1.0
291280
tags:
292281
- cargo
@@ -306,7 +295,6 @@ pipelines:
306295
show_success_output: true
307296
show_bash_c: true
308297
- title: Format
309-
desc: Format `.rs` files
310298
info: cargo-fmt@0.1.0
311299
tags:
312300
- rust
@@ -324,7 +312,6 @@ pipelines:
324312
show_bash_c: true
325313
only_when_fresh: false
326314
- title: Build
327-
desc: Got from `Cargo Build (Release)`. Build the Rust project with Cargo default settings in release mode
328315
info: cargo-rel@0.1
329316
tags:
330317
- rust
@@ -344,7 +331,6 @@ pipelines:
344331
show_success_output: false
345332
show_bash_c: true
346333
- title: Compress
347-
desc: Got from `UPX Compress`.
348334
info: upx@0.1.0
349335
tags:
350336
- upx
@@ -374,7 +360,6 @@ pipelines:
374360
type: plain
375361
value: target/release/deployer
376362
- title: Install to ~/.cargo/bin
377-
desc: ""
378363
info: install-to-cargo-bin@0.1.1
379364
tags:
380365
- cargo
@@ -414,7 +399,6 @@ pipelines:
414399
exclusive_exec_tag: ru-full
415400
actions:
416401
- title: Проверка качества кода
417-
desc: Got from `Cargo Clippy`.
418402
info: cargo-clippy@0.1.0
419403
tags:
420404
- cargo
@@ -434,7 +418,6 @@ pipelines:
434418
show_success_output: true
435419
show_bash_c: true
436420
- title: Форматирование кода
437-
desc: Format `.rs` files
438421
info: cargo-fmt@0.1.0
439422
tags:
440423
- rust
@@ -452,7 +435,6 @@ pipelines:
452435
show_bash_c: true
453436
only_when_fresh: false
454437
- title: Сборка
455-
desc: Got from `Cargo Build (Release)`. Build the Rust project with Cargo default settings in release mode
456438
info: cargo-rel@0.1
457439
tags:
458440
- rust
@@ -472,7 +454,6 @@ pipelines:
472454
show_success_output: false
473455
show_bash_c: true
474456
- title: Сжатие
475-
desc: Got from `UPX Compress`.
476457
info: upx@0.1.0
477458
tags:
478459
- upx
@@ -502,7 +483,6 @@ pipelines:
502483
type: plain
503484
value: target/release/deployer
504485
- title: Установка в ~/.cargo/bin
505-
desc: ""
506486
info: install-to-cargo-bin@0.1.1
507487
tags:
508488
- cargo
@@ -542,15 +522,13 @@ pipelines:
542522
exclusive_exec_tag: ru-mold
543523
actions:
544524
- title: Добавить линковщик `mold`
545-
desc: ""
546525
info: use-mold@0.1.0
547526
tags: []
548527
exec_in_project_dir: false
549528
action:
550529
type: use_from_storage
551530
content_info: cargo-mold-linker@latest
552531
- title: Проверка качества кода
553-
desc: Got from `Cargo Clippy`.
554532
info: cargo-clippy@0.1.0
555533
tags:
556534
- cargo
@@ -570,7 +548,6 @@ pipelines:
570548
show_success_output: true
571549
show_bash_c: true
572550
- title: Форматирование кода
573-
desc: Format `.rs` files
574551
info: cargo-fmt@0.1.0
575552
tags:
576553
- rust
@@ -588,7 +565,6 @@ pipelines:
588565
show_bash_c: true
589566
only_when_fresh: false
590567
- title: Сборка
591-
desc: Got from `Cargo Build (Release)`. Build the Rust project with Cargo default settings in release mode
592568
info: cargo-rel@0.1
593569
tags:
594570
- rust
@@ -608,7 +584,6 @@ pipelines:
608584
show_success_output: false
609585
show_bash_c: true
610586
- title: Сжатие
611-
desc: Got from `UPX Compress`.
612587
info: upx@0.1.0
613588
tags:
614589
- upx
@@ -638,7 +613,6 @@ pipelines:
638613
type: plain
639614
value: target/release/deployer
640615
- title: Установка в ~/.cargo/bin
641-
desc: ""
642616
info: install-to-cargo-bin@0.1.1
643617
tags:
644618
- cargo
@@ -674,7 +648,6 @@ pipelines:
674648
exclusive_exec_tag: ru
675649
actions:
676650
- title: Lint
677-
desc: Got from `Cargo Clippy`.
678651
info: cargo-clippy@0.1.0
679652
tags:
680653
- cargo
@@ -694,7 +667,6 @@ pipelines:
694667
show_success_output: true
695668
show_bash_c: true
696669
- title: Lint with `containered` feature
697-
desc: Got from `Cargo Clippy`.
698670
info: cargo-clippy@0.1.0
699671
tags:
700672
- cargo
@@ -720,7 +692,6 @@ pipelines:
720692
default: false
721693
actions:
722694
- title: Test remote checkup and execution
723-
desc: Got from `Simple action with remote requirement`. Make sure that you've added any remote host to Deployer's Registry as `remote-pc`.
724695
info: simple-action-with-remote-requirement@0.1.0
725696
tags: []
726697
requirements:
@@ -742,7 +713,6 @@ pipelines:
742713
default: false
743714
actions:
744715
- title: Test Observe
745-
desc: Got from `Test Observe`.
746716
info: test-observe@0.1.0
747717
tags: []
748718
action:
@@ -759,7 +729,6 @@ pipelines:
759729
tags: []
760730
actions:
761731
- title: Sub-pipeline running Action
762-
desc: Получено из `Sub Pipe Test Action`.
763732
info: sub-pipe-test@0.1.0
764733
tags: []
765734
exec_in_project_dir: false
@@ -771,7 +740,6 @@ pipelines:
771740
tags: []
772741
actions:
773742
- title: List files
774-
desc: Получено из `List files and folders`.
775743
info: ls@0.1.0
776744
tags: []
777745
exec_in_project_dir: false
@@ -818,7 +786,6 @@ pipelines:
818786
exclusive_exec_tag: containered
819787
actions:
820788
- title: Lint
821-
desc: Got from `Cargo Clippy`.
822789
info: cargo-clippy@0.1.0
823790
tags:
824791
- cargo
@@ -838,7 +805,6 @@ pipelines:
838805
show_success_output: true
839806
show_bash_c: true
840807
- title: Build
841-
desc: Got from `Cargo Build (Release)`. Build the Rust project with Cargo default settings in release mode
842808
info: cargo-rel@0.1
843809
tags:
844810
- rust
@@ -893,7 +859,6 @@ pipelines:
893859
exclusive_exec_tag: ru-containered
894860
actions:
895861
- title: Проверка качества кода
896-
desc: Got from `Cargo Clippy`.
897862
info: cargo-clippy@0.1.0
898863
tags:
899864
- cargo
@@ -913,7 +878,6 @@ pipelines:
913878
show_success_output: true
914879
show_bash_c: true
915880
- title: Сборка
916-
desc: Got from `Cargo Build (Release)`. Build the Rust project with Cargo default settings in release mode
917881
info: cargo-rel@0.1
918882
tags:
919883
- rust
@@ -970,7 +934,6 @@ pipelines:
970934
exclusive_exec_tag: ru-containered-bureau-1440
971935
actions:
972936
- title: Проверка качества кода
973-
desc: Got from `Cargo Clippy`.
974937
info: cargo-clippy@0.1.0
975938
tags:
976939
- cargo
@@ -990,7 +953,6 @@ pipelines:
990953
show_success_output: true
991954
show_bash_c: true
992955
- title: Сборка
993-
desc: Got from `Cargo Build (Release)`. Build the Rust project with Cargo default settings in release mode
994956
info: cargo-rel@0.1
995957
tags:
996958
- rust

src/actions.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,9 @@ use crate::rw::read_checked;
5353
/// Action definition.
5454
#[derive(Deserialize, Serialize, PartialEq, Clone)]
5555
pub struct DescribedAction {
56-
/// Name of the Action.
56+
/// Description of the Action.
5757
pub title: String,
5858

59-
/// Description.
60-
pub desc: String,
61-
6259
/// Short name and version.
6360
#[serde(serialize_with = "info2str", deserialize_with = "str2info")]
6461
pub info: ActionInfo,
@@ -245,9 +242,6 @@ pub fn list_actions(globals: &DeployerGlobalConfig) {
245242
action_title.green().bold(),
246243
tags
247244
);
248-
if !action.desc.is_empty() {
249-
println!("\t> {}", action.desc.green().italic());
250-
}
251245
}
252246
}
253247

src/actions/storage_use.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pub struct UseFromStorageAction {
1414
pub content_info: ContentInfo,
1515

1616
/// Subfolder to sync.
17+
#[serde(skip_serializing_if = "Option::is_none")]
1718
pub subfolder: Option<PathBuf>,
1819
}
1920

src/configs.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,7 @@ impl DeployerGlobalConfig {
137137
actions_registry.insert(
138138
info.clone(),
139139
DescribedAction {
140-
title: "Interrupt Pipeline".into(),
141-
desc: "Interrupt Pipeline execution until user press a button.".into(),
140+
title: "Interrupt Pipeline execution until user press a button.".into(),
142141
info,
143142
tags: vec![],
144143
action: Action::Interrupt,
@@ -159,8 +158,7 @@ impl Default for DeployerGlobalConfig {
159158
actions_registry.insert(
160159
info.clone(),
161160
DescribedAction {
162-
title: "Cargo Build (Release)".into(),
163-
desc: "Build the Rust project with Cargo default settings in release mode".into(),
161+
title: "Build the Rust project with Cargo in release mode".into(),
164162
info,
165163
tags: vec!["rust".into(), "cargo".into()],
166164
action: Action::Build(BuildAction {

src/configs/migrate.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ fn migrate_action_v3_to_v4(action: &DescribedActionV3) -> DescribedAction {
281281
}),
282282
ActionV3::SubPipeline(p) => Action::SubPipeline(Box::new(migrate_pipe_v3_to_v4(p.as_ref()))),
283283
},
284-
desc: action.desc.to_owned(),
285284
exec_in_project_dir: action.exec_in_project_dir,
286285
info: action.info.to_owned(),
287286
requirements: if let Some(prev_reqs) = &action.requirements {

src/i18n/en.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ tr!(PIPELINE_SPECIFY_ANOTHER, "· Specify another Pipeline");
188188
tr!(ACTION_SHORT_NAME, "Write the Action's short name:");
189189
tr!(ACTION_VERSION, "Specify the Action's version:");
190190
tr!(ACTION_FULL_NAME, "Write the Action's full name:");
191-
tr!(ACTION_DESC, "Write the Action's description:");
192191
tr!(ACTION_TAGS, "Write Action's tags, if any:");
193192

194193
tr!(ACTION_SELECT_TYPE, "Select Action's type (read the docs for details):");

src/i18n/ru.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ tr!(PIPELINE_SPECIFY_ANOTHER, "· Указать другой Пайплайн")
203203
tr!(ACTION_SHORT_NAME, "Укажите короткое название Действия:");
204204
tr!(ACTION_VERSION, "Укажите версию Действия:");
205205
tr!(ACTION_FULL_NAME, "Укажите полное название Действия:");
206-
tr!(ACTION_DESC, "Укажите описание Действия:");
207206
tr!(ACTION_TAGS, "Напишите теги Действия, если есть:");
208207

209208
tr!(

src/pipelines.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub struct DescribedPipeline {
3636
/// title is simple enough to use it as argument to `deployer build name1,name2,name3,..`.
3737
pub title: String,
3838

39-
/// Pipeline description.
39+
/// Pipeline .
4040
pub desc: String,
4141

4242
/// Short name and version.

0 commit comments

Comments
 (0)