Skip to content

Create the output directory if it does not exist (#118)#141

Merged
vados-cosmonic merged 4 commits into
bytecodealliance:mainfrom
chikoski:issue118
Jun 26, 2026
Merged

Create the output directory if it does not exist (#118)#141
vados-cosmonic merged 4 commits into
bytecodealliance:mainfrom
chikoski:issue118

Conversation

@chikoski

Copy link
Copy Markdown
Contributor

This PR is a fix for issue #118. With this fix, the get command creates the directory specified by the -o option if the specified directory does not exist.

For example, the following command creates the wit directory and saves the wasi:http@0.2.0.wit in it:

$ wkg get -o wit/ wasi:http0.2.0

@thomastaylor312 thomastaylor312 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for adding this! Just one small change needed

Comment thread crates/wkg/src/main.rs Outdated
@vados-cosmonic vados-cosmonic force-pushed the issue118 branch 3 times, most recently from efcb6d9 to 26ddce0 Compare June 26, 2026 01:52
@vados-cosmonic vados-cosmonic dismissed thomastaylor312’s stale review June 26, 2026 01:57

Taylor's point was addressed, this PR has been reworked a bit since then

@vados-cosmonic vados-cosmonic merged commit b44ab55 into bytecodealliance:main Jun 26, 2026
3 checks passed
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.

3 participants