inkdevhub / swanky-cli

The all-in-one developer environment for Parity pallet-contracts based smart contracts!
https://docs.astar.network/docs/build/wasm/swanky-suite/cli/
MIT License
70 stars 29 forks source link

Update `swanky check` #114

Closed codespool closed 7 months ago

codespool commented 1 year ago

Overview (What and Why)

swanky check's output should simply list all the dependencies' versions, and list the eventual missing ones. It should also include the OS and architecture info.

The output should also be optionally stored in a file, so it can be shared for debugging purposes

We should also maintain a remote compatibility list of cargo-contract version -> min ink! version that should be fetched and used when checking the local env, and warn the user to update the ink! version accordingly

How

Definition of Done

Open Issues and Blockers

shunsukew commented 1 year ago

Why not just use redirecting output swanky check > result.txt or use copy&paste? I don't see any value of saving option.

codespool commented 1 year ago

If you output just plain text, that's an ok option, but if we add some formatting (f.ex. a table or some colours), then a redirect would have unnecessary formatting characters and --file option or similar would be used to print plain text to a file.

vsofiya commented 9 months ago

https://github.com/inkdevhub/swanky-cli/pull/195