Skip to content

Commit 82c29a4

Browse files
committed
Add description field to Workflow constructor
1 parent 843f31e commit 82c29a4

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

workflow-types/src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,16 @@ impl Workflow {
5959
&self.shells
6060
}
6161

62-
pub fn new(name: impl Into<String>, command: impl Into<String>) -> Self {
62+
pub fn new(
63+
name: impl Into<String>,
64+
command: impl Into<String>,
65+
description: Option<String>,
66+
) -> Self {
6367
Workflow {
6468
name: name.into(),
6569
command: command.into(),
6670
tags: vec![],
67-
description: None,
71+
description,
6872
arguments: vec![],
6973
source_url: None,
7074
author: None,

0 commit comments

Comments
 (0)