Skip to content

Proper pattern for pipeline-type command chaining #353

Answered by pacak
abey79 asked this question in Q&A
Discussion options

You must be logged in to vote

Removing Debug + Clone constraint from Stage makes it trait object safe, removing #[derive(Debug, Clone)] from Options deals with unsatisfied requirements and finally this construct!(Options { stages }).to_options() makes it compile. You'll need to change Translate and Scale into actual commands with #[bpaf(command)] but that's easy.

Seem to work.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@pacak
Comment options

@pacak
Comment options

@pacak
Comment options

Answer selected by abey79
@abey79
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants