Skip to content

improve the binary version flag output

Research and write what exactly needs to be done to have this working.

Research Tasks:

  • what are the numbers in the polkadot version?
  • would it be useful to see the spec_version in the binary version output?
  • what is OUR structure, from where this 1 number comes

Currently, this is how it looks like

❯ ./artifacts/anagolay  --version
anagolay 1

This task will make it look similar as Polkadot

❯ ./polkadot --version
polkadot 0.9.37-645723987cf

Implementation Tasks:

  • change the CLI --version output

spec:https://gitlab.com/anagolay/anagolay/-/blob/179-convert-to-parachain/runtime/src/lib.rs#L193

anagolay --version 0.4.0-ref:2asd123-spec:TAKE_THIS_FROM_RUNTIME
IDIYANALE_CLI_IMPL_VERSION="0.4.0-ref:2asd123"
fn impl_version() -> String {
	env!("IDIYANALE_CLI_IMPL_VERSION").into() + "-spec:TAKE_THIS_FROM_RUNTIME"
}
Edited by cuteolaf