usageExamples property

  1. @override
String? get usageExamples
override

Commands can override this getter to add examples to the usage help text.

Implementation

@override
String? get usageExamples =>
    '''\n
Examples

Enable analytics.

  \$ $baseCommand settings set analytics true

Disable analytics.

  \$ $baseCommand settings set analytics false

Set the global project context.

  \$ $baseCommand settings set projectContext my-project
''';