Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
miseyu committed Sep 23, 2024
1 parent ea53be2 commit 97c0d51
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
8 changes: 4 additions & 4 deletions workflow/Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@ git ls-files |grep -E '.rs$' |(! xargs grep 'todo!')
[tasks.doc-action]
script = ['''
#!/usr/bin/env bash -eux
rm -rf ../schema/actions.json
rm -rf ./schema/actions.json
rm -rf ./docs/mdbook/src/action.md
cargo run -- schema-action > ../schema/actions.json
cargo run -- doc-action > ./docs/mdbook/src/action.md
cargo run --package reearth-flow-cli -- schema-action > ./schema/actions.json
cargo run --package reearth-flow-cli -- doc-action > ./docs/mdbook/src/action.md
''']

[tasks.doc-workflow]
script = ['''
#!/usr/bin/env bash -eux
rm -rf ../schema/workflow.json
cargo run -- schema-workflow > ../schema/workflow.json
cargo run --package reearth-flow-cli -- schema-workflow > ./schema/workflow.json
''']

[tasks.serve-mdbook]
Expand Down
10 changes: 5 additions & 5 deletions workflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ graphs:
* To specify individual variables on the command line, use the -var option when running the
``` console
$ cargo run -- run --var="cityGmlPath=file:///root/53395658_bldg_6697_op.gml"
$ cargo run -- run --var='cityGmlPath_list=["file:///root/53395658_bldg_6697_op.gml","file:///root/53395658_bldg_6698_op.gml"]' --var="addNsprefixToFeatureTypes=false"
$ cargo run -- run --var='cityGmlPath_map={"path01":"file:///root/53395658_bldg_6697_op.gml","path02":"file:///root/53395658_bldg_6698_op.gml"}'
$ cargo run --package reearth-flow-cli -- run --var="cityGmlPath=file:///root/53395658_bldg_6697_op.gml"
$ cargo run --package reearth-flow-cli -- run --var='cityGmlPath_list=["file:///root/53395658_bldg_6697_op.gml","file:///root/53395658_bldg_6698_op.gml"]' --var="addNsprefixToFeatureTypes=false"
$ cargo run --package reearth-flow-cli -- run --var='cityGmlPath_map={"path01":"file:///root/53395658_bldg_6697_op.gml","path02":"file:///root/53395658_bldg_6698_op.gml"}'
```

### Environment Variables
Expand All @@ -111,7 +111,7 @@ export FLOW_VAR_targetPackages='["bldg", "fld"]'

### Run workflow
```console
$ cargo run -- run --workflow ${workflow_path}
$ cargo run --package reearth-flow-cli -- run --workflow ${workflow_path}
```

### Run example
Expand All @@ -127,7 +127,7 @@ $ cargo run --package reearth-flow-examples --example attribute_reader
```console
$ brew install graphviz
$ cargo install yaml-include
$ yaml-include examples/plateau/testdata/workflow/xml_validator.yml | cargo run -- dot --workflow - | dot -Tpng > output.png
$ yaml-include examples/plateau/testdata/workflow/xml_validator.yml | cargo run --package reearth-flow-cli -- dot --workflow - | dot -Tpng > output.png
```

![xml_validator](./docs/images/xml_validator.png)
Expand Down
2 changes: 0 additions & 2 deletions workflow/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ repository.workspace = true
rust-version.workspace = true
version.workspace = true

default-run = "reearth-flow"

[[bin]]
name = "reearth-flow"
path = "src/main.rs"
Expand Down

0 comments on commit 97c0d51

Please sign in to comment.