ConfD User Community

How to customise describe <command> output

ConfD provides a built-in command "describe " which displays the detailed information about a command. I have a requirement to customise the information displayed for the ConfD CLI built-in command “describe idle-timeout”. There is no help text which tells the supported range for idle-timeout in CLI. (The idle-timeout supported range is 0-8192.). We would like to provide this range details in the describe idle-timeout info.

syscon-1-active# describe idle-timeout 
Common
    Source : built-in

Help
    Configure idle timeout

Info
    Configure idle timeout
syscon-1-active# 

syscon-1-active# idle-timeout -1
------------------------------^
syntax error: "-1" is not a valid value.
syscon-1-active# idle-timeout 10000 
------------------------------^
syntax error: "10000" is out of range.
syscon-1-active# idle-timeout 8193 
------------------------------^
syntax error: "8193" is out of range.
syscon-1-active# idle-timeout 8192
syscon-1-active# 
syscon-1-active# 

Did you try clispec?

/clispec/$MODE/modifications/info (xs:string)
/clispec/$MODE/modifications/paraminfo (xs:string)

I have not tried it, but those two may be reflected in describe.