Skip to content

Commit

Permalink
chore: run dart format in at_cli_commons
Browse files Browse the repository at this point in the history
  • Loading branch information
gkc committed Oct 22, 2024
1 parent 2461c67 commit 0233997
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions packages/at_cli_commons/lib/src/cli_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,38 +12,35 @@ import 'package:version/version.dart';

class CLIBase {
static const defaultMaxConnectAttempts = 20;

/// An ArgParser which has all of the options and flags required by [CLIBase]
/// Used by [fromCommandLineArgs] if the `parser` parameter isn't supplied.
static final ArgParser argsParser = ArgParser()
..addFlag('help', negatable: false, help: 'Usage instructions')
..addOption('atsign',
abbr: 'a', mandatory: true, help: 'This client\'s atSign')
..addOption('namespace', abbr: 'n', mandatory: true, help: 'Namespace')
..addOption(
'key-file',
abbr: 'k',
mandatory: false,
..addOption('key-file',
abbr: 'k',
mandatory: false,
help: 'Your atSign\'s atKeys file if not in ~/.atsign/keys/')
..addOption('cram-secret',
abbr: 'c', mandatory: false, help: 'atSign\'s cram secret')
..addOption('home-dir', abbr: 'h', mandatory: false, help: 'home directory')
..addOption(
'storage-dir',
abbr: 's',
mandatory: false,
..addOption('storage-dir',
abbr: 's',
mandatory: false,
help: 'directory for this client\'s local storage files')
..addOption(
'root-domain',
abbr: 'd',
mandatory: false,
help: 'Root Domain',
..addOption('root-domain',
abbr: 'd',
mandatory: false,
help: 'Root Domain',
defaultsTo: 'root.atsign.org')
..addFlag('verbose', abbr: 'v', negatable: false, help: 'More logging')
..addFlag('never-sync', negatable: false, help: 'Do not run sync')
..addOption(
'max-connect-attempts',
help: 'Number of times to attempt to initially connect to atServer.'
' Note: there is a 3-second delay between connection attempts.',
..addOption('max-connect-attempts',
help: 'Number of times to attempt to initially connect to atServer.'
' Note: there is a 3-second delay between connection attempts.',
defaultsTo: defaultMaxConnectAttempts.toString());

/// Constructs a CLIBase from a list of command-line arguments
Expand Down Expand Up @@ -193,7 +190,8 @@ class CLIBase {
..namespace = nameSpace
..downloadPath = downloadPathToUse
..isLocalStoreRequired = true
..commitLogPath = '$localStoragePathToUse/commitLog'.replaceAll('/', Platform.pathSeparator)
..commitLogPath = '$localStoragePathToUse/commitLog'
.replaceAll('/', Platform.pathSeparator)
..rootDomain = rootDomain
..fetchOfflineNotifications = true
..atKeysFilePath = atKeysFilePathToUse
Expand Down

0 comments on commit 0233997

Please sign in to comment.