[cli] fix bugs in the template (#224)

10 jobs for master in 25 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Check Workspace
failed #267879
linux-docker
cargo-build-nf

00:00:16

failed #267873
linux-docker
cargo-check-af

00:00:16

failed #267874
linux-docker
cargo-check-nf

00:00:16

failed #267876
linux-docker
cargo-clippy-af

00:00:15

failed #267877
linux-docker
cargo-clippy-nf

00:00:16

failed #267875
linux-docker
cargo-fmt

00:00:24

failed #267878
linux-docker
cargo-test-af

00:00:16

 
  Examples
skipped #267882
linux-docker
examples-abi
skipped #267881
linux-docker
examples-test
skipped #267880
linux-docker
examples-wasm
 
Name Stage Failure
failed
cargo-fmt Check Workspace
No job log
failed
cargo-build-nf Check Workspace
No job log
failed
cargo-clippy-nf Check Workspace
No job log
failed
cargo-test-af Check Workspace
No job log
failed
cargo-clippy-af Check Workspace
No job log
failed
cargo-check-nf Check Workspace
No job log
failed
cargo-check-af Check Workspace
No job log