Skip to content

add deploy_dir flag to build command#103

Open
Perelyn-sama wants to merge 4 commits intoblueshift-gg:masterfrom
Perelyn-sama:master
Open

add deploy_dir flag to build command#103
Perelyn-sama wants to merge 4 commits intoblueshift-gg:masterfrom
Perelyn-sama:master

Conversation

@Perelyn-sama
Copy link

We need this in the program examples repo to maintain our CI workflow for sbpf asm examples

cargo build-sbf has a --sbf-out-dir flag for custom output directories but sbpf currently doesn't

src/main.rs Outdated
match &cli.command {
Commands::Init(args) => init(args.name.clone(), args.ts_tests),
Commands::Build(args) => build(args.debug, args.static_syscalls),
Commands::Build(args) => build(args.debug, args.static_syscalls, args.deploy_dir.clone()),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the change makes sense to me, but could you make these commands take xxArgs as the only input instead, then break it down in each xx.rs? so that the next time we add more arguments, we don't change it again and it doesn't grow into a messy list in the future

@clairechingching
Copy link
Collaborator

change is good, please address failed checks :D

@Perelyn-sama
Copy link
Author

change is good, please address failed checks :D

addressed :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants