Skip to content

Commit

Permalink
chore: Add code to create hello-world workflow instead empty workflow…
Browse files Browse the repository at this point in the history
… on "composer new" command
  • Loading branch information
ajaykumargdr committed Dec 27, 2023
1 parent 3489b71 commit 54beb31
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions workflow/composer-v2/src/commands/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,22 @@ impl Create {

let temp_path = package.join("main.echo");
let content = format!(
"workflows(
"hello_world = task(
kind = \"hello_world\",
action_name = \"hello_world\",
input_arguments = [
argument(
name=\"name\",
input_type = String,
default_value = \"World\"
),
],
)
workflows(
name = {},
version = \"0.0.1\",
tasks = []
tasks = [hello_world]
)",
self.package_name
);
Expand Down

0 comments on commit 54beb31

Please sign in to comment.