Use build.rs-generated YAML file for configuring workflows #29

Closed
opened 2025-01-23 03:11:33 +00:00 by ryan · 3 comments
Owner

TOML is starting to feel tedious. Until we get the HCL version, YAML is a more concise and more flexible option. I'm not the biggest fan of YAML's bare strings, yes == true, and other things, but I am willing to work with it for now.

Most of the files will be stored in crates/icepick/workflows/<module_name>/<workflow_name>.yaml, which will be automatically parsed by build.rs and added to a configuration file.

TOML is starting to feel tedious. Until we get the HCL version, YAML is a more concise and more flexible option. I'm not the biggest fan of YAML's bare strings, `yes == true`, and other things, but I am willing to work with it for now. Most of the files will be stored in `crates/icepick/workflows/<module_name>/<workflow_name>.yaml`, which will be automatically parsed by `build.rs` and added to a configuration file.
ryan added this to the Custody Framework project 2025-01-23 08:51:42 +00:00
ryan added this to the Icepick v0.2.0 milestone 2025-01-23 08:51:46 +00:00
Author
Owner

Additional bonus: adding the ability to have multiple arguments means we can specify address, pubkey, and authorization_address for something like icepick workflow sol generate-nonce-account --input-file account.json

Additional bonus: adding the ability to have multiple arguments means we can specify `address`, `pubkey`, and `authorization_address` for something like `icepick workflow sol generate-nonce-account --input-file account.json`
Author
Owner

For reference, this system should help with implementing new workflows, since YAML is a much nicer language for implementing these nested structures in.

For reference, this system should help with implementing new workflows, since YAML is a _much_ nicer language for implementing these nested structures in.
Author
Owner

Closing as we have now fully migrated outside of icepick.toml for workflows.

Closing as we have now fully migrated outside of `icepick.toml` for workflows.
ryan closed this issue 2025-02-18 08:13:24 +00:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: public/icepick#29
No description provided.