optionalCommands top-level property
Git finds these as "git-
Implementation
final optionalCommands = <String, Map<String, dynamic>>{
'open': {
'description': 'Open in your browser',
'options': [
Option(name: ['-c', '--commit'], description: 'Open current commit'),
Option(name: ['-i', '--issue'], description: 'Open issues page'),
Option(
name: ['-s', '--suffix'],
description: 'Append this suffix',
args: [Arg(name: 'string')]),
Option(name: ['-p', '--print'], description: 'Just print the URL'),
],
},
'recent': {
'description': 'Show recent local branches',
'options': [
Option(
name: ['-n'],
description: 'Specify a number of branches to show',
args: [Arg(name: 'int')]),
],
},
'flow': {
'description': "Extensions to follow Vincent Driessen's branching model",
'loadSpec': 'git-flow',
},
};