httpServerSpec top-level property
Completion spec for http.server CLI
Implementation
final FigSpec httpServerSpec = FigSpec(
name: 'http.server',
description: '',
options: [
Option(
name: ['-d', '--directory'],
description: 'Choose the directory to initiate the server from',
args: [
Arg(
template: 'folders'
)
]
),
Option(
name: ['-b', '--bind'],
description: 'Bind to a specific IP address',
args: [
Arg(
name: 'IP Address',
description: 'E.g. 127.0.0.1'
)
]
),
Option(
name: '--cgi',
description: 'Enable the CGIHTTPRequestHandler'
)
],
args: [
Arg(
name: 'port',
description: 'Port number'
)
]
);