sidekick_vault 0.2.0 copy "sidekick_vault: ^0.2.0" to clipboard
sidekick_vault: ^0.2.0 copied to clipboard

outdated

Reads project secrets from a local filesystem

example/example.dart

import 'package:sidekick_core/sidekick_core.dart';
import 'package:sidekick_vault/sidekick_vault.dart';

void main() {
  final vault = SidekickVault(
    location: repository.root.directory('vault'),
    // environment variable where CIs can inject the vault password
    environmentVariableName: 'FLT_VAULT_PASSPHRASE',
  );

  final secret = vault.loadText('secret.txt');

  // Use secret on your CI to do magic things
  print(secret);
}
5
likes
0
pub points
50%
popularity

Publisher

verified publisherphntm.xyz

Reads project secrets from a local filesystem

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dcli, sidekick_core

More

Packages that depend on sidekick_vault