hostnameSpec top-level property
Completion spec for hostname CLI
Implementation
final FigSpec hostnameSpec = FigSpec(
name: 'hostname',
description: 'Set or print name of current host system',
options: [
Option(
name: '-f',
description: 'Include domain information in the printed name'
),
Option(
name: '-s',
description: 'Trim off any domain information from the printed name'
),
Option(
name: '-d',
description: 'Only print domain information'
)
],
args: [
Arg(
name: 'hostname',
description: 'The hostname to use for this machine'
)
]
);