Need to add type for params in confd.cli

I need to add specific types for parameters in confd.cli. I am executing some scripts from confd.cli, and I want the parameters to have some restrictions on the type, for example: ip, filename. Any way to to do this via types under params in the xml.

See the clispec(5) man page under /clispec/$MODE/cmd/params/param/type/file

IP address simpleType example:
<simpleType name="inetAddressIP" namespace=""/>

Thanks, can we do something for strings and give a regex pattern to match, for example for file names.

I believe you got your question answered here Define custom simpletype

1 Like