publishOptions top-level property
Implementation
final List<Option> publishOptions = [
Option(
name: '--publish-url',
description: 'The URL of the upload endpoint (not the index URL)',
args: [Arg(name: 'PUBLISH_URL')]),
Option(
name: '-u',
description: 'The username for the upload',
args: [Arg(name: 'USERNAME')]),
Option(
name: '-p',
description: 'The password for the upload',
args: [Arg(name: 'PASSWORD')]),
Option(
name: '-t',
description: 'The token for the upload',
args: [Arg(name: 'TOKEN')]),
Option(
name: '--trusted-publishing',
description: 'Configure using trusted publishing through GitHub Actions',
args: [
Arg(name: 'TRUSTED_PUBLISHING', suggestions: [
FigSuggestion(name: 'automatic'),
FigSuggestion(name: 'always'),
FigSuggestion(name: 'never')
])
]),
Option(
name: '--keyring-provider',
description:
'Attempt to use `keyring` for authentication for remote requirements files',
args: [
Arg(name: 'KEYRING_PROVIDER', suggestions: [
FigSuggestion(name: 'disabled'),
FigSuggestion(name: 'subprocess')
])
]),
Option(
name: '--check-url',
description:
'Check an index URL for existing files to skip duplicate uploads',
args: [Arg(name: 'CHECK_URL')])
];