-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
use clap::Clap; | ||
|
||
#[derive(Clap, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)] | ||
#[clap( | ||
name = "lurien", | ||
version = "0.1", | ||
author = "Klim Tsoutsman", | ||
rename_all = "kebab" | ||
)] | ||
pub enum App { | ||
Populate(Populate), | ||
Save(Save), | ||
Watch(Watch), | ||
} | ||
|
||
/// Apply the markers from a `.lurien` file | ||
#[derive(Clap, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)] | ||
pub struct Populate {} | ||
|
||
/// Save the markers in the specified directory into a `.lurien` file | ||
#[derive(Clap, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)] | ||
pub struct Save {} | ||
|
||
/// Watch for changes in the config and adjust the specified `.lurien` file accordingly | ||
#[derive(Clap, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)] | ||
pub struct Watch {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
use lurien::app::App; | ||
|
||
use clap::Clap; | ||
|
||
fn main() { | ||
println!("Hello, world!"); | ||
let opt = App::parse(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//! A tool to help manage config files on multiple devices. | ||
#![warn( | ||
rust_2018_idioms, | ||
rust_2021_compatibility, | ||
future_incompatible, | ||
missing_debug_implementations, | ||
missing_copy_implementations, | ||
rustdoc::broken_intra_doc_links | ||
)] | ||
|
||
pub mod app; |