tomSecretsBootstrapPath function

String tomSecretsBootstrapPath({
  1. Map<String, String>? environment,
  2. String? operatingSystem,
})

The default bootstrap file: bootstrap.yaml in tomSecretsDataDirectory.

Implementation

String tomSecretsBootstrapPath({
  Map<String, String>? environment,
  String? operatingSystem,
}) {
  final os = operatingSystem ?? Platform.operatingSystem;
  final separator = os == 'windows' ? '\\' : '/';
  return '${tomSecretsDataDirectory(environment: environment, operatingSystem: os)}'
      '${separator}bootstrap.yaml';
}