1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//! # Keyflux
//!
//! `keyflux` is a CLI tool and library for synchronizing environment secrets across multiple platforms including local files, GitHub Secrets, Supabase Vault, and Vercel Secrets. It facilitates secure management and automation of sensitive data.
//!
//! ## Features
//!
//! - **Multi-platform support**: Sync secrets between local files, GitHub, Supabase, and Vercel.
//! - **Secure management**: Automate and manage sensitive data securely.
//! - **Customizable configuration**: Flexible configuration options through various file formats.
//! - **CLI and library**: Use as a standalone CLI tool or integrate into your Rust project as a library.
//! - **Real-time synchronization**: Watch for changes and automatically sync secrets.
//!
//! ## Modules
//!
//! - `config`: Contains configuration structures and functions.
//! - `manager`: Manages secret synchronization.
//! - `error`: Defines error types used throughout the crate.
//! - `action`: Contains actions for the CLI.
//! - `cli`: Handles command-line interface parsing and arguments.
//! - `core`: Core functionality of the crate.
//! - `utils`: Utility functions used by various modules.
//!
//! ## Usage
//!
//! Add `keyflux` to your `Cargo.toml`:
//!
//! ```toml
//! [dependencies]
//! keyflux = "0.1.1"
//! ```
// pub mod config; // Make sure src/action/config.rs exists or mod.rs within src/action/
// Make sure src/action/config.rs exists or mod.rs within src/action/
// Make sure src/action/manager.rs exists or mod.rs within src/action/
// Make sure src/action/error.rs exists or mod.rs within src/action/
// Make sure src/action/cli.rs exists or mod.rs within src/action/
// Make sure src/action/core.rs exists or mod.rs within src/action/
// Make sure src/action/utils.rs exists or mod.rs within src/action/
include!;
// pub use crate::config::Config; // Correctly reference Config from your crate
// pub use crate::config::Configs; // Correctly reference Configs from your crate
pub use crateKeyManager; // Correctly reference SecretManager from your crate
pub use crateConfigError; // Correctly reference ConfigError from your crate
// Load I18n macro, for allow you use `t!` macro in anywhere.
extern crate rust_i18n;
extern crate prettytable;
// Initialize translations for the current crate.
i18n!;