MystenLabs / sui

Sui, a next-generation smart contract platform with high throughput, low latency, and an asset-oriented programming model powered by the Move programming language
https://sui.io
Apache License 2.0
5.98k stars 11.1k forks source link

Sui CLI move build option #19114

Closed daoauth closed 5 days ago

daoauth commented 2 weeks ago

It's not a bug, but it would be great if there was an option to save the output to a file when running sui move build --dump-bytecode-as-base64.

For example, to be able to save it like this:

sui move build --dump-bytecode-as-base64 bytecode.json

If no parameter is given, it would work as it currently does.

manolisliolios commented 2 weeks ago

hey @daoauth , You could theoretically pipe to an output file like this

sui move build --dump-bytecode-as-base64 > bytecode.json

Given that it is do-able that way, I am not certain a custom option in the CLI would add a lot of value, but I'll defer to @stefan-mysten for more thoughts on this!

stefan-mysten commented 5 days ago

A command for this seems like an overkill here, but we'll consider it for the future!