Add `--include` flag to `transaction sign` command
Transaction signer command suppresses output fields by default, but
instructs to use `--include` flag to explicitly show suppressed fields.
The `--include` flag was missing though and therefore it failed.
This change adds support for that flag.
@@ -31,6 +31,7 @@ import (
type flagsSign struct {
Signer string `default:"emulator-account" flag:"signer" info:"name of the account used to sign"`
+ Include []string `default:"" flag:"include" info:"Fields to include in the output"`
}
var signFlags = flagsSign{}
@@ -71,5 +72,6 @@ func sign(
return &TransactionResult{
tx: signed.FlowTransaction(),
+ include: signFlags.Include,
}, nil
}
