-
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
1 parent
dfa1280
commit c0e41ba
Showing
12 changed files
with
91 additions
and
53 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,12 +1,29 @@ | ||
[package] | ||
name = "notmuch-mailmover" | ||
version = "0.2.0" | ||
version = "0.0.0" | ||
authors = ["Michael Adler <[email protected]>"] | ||
description = "Move notmuch tagged mails into Maildir folders" | ||
homepage = "https://github.com/michaeladler/notmuch-mailmover" | ||
license = "Apache-2.0" | ||
edition = "2021" | ||
|
||
[lib] | ||
name = "nm_mailmover" | ||
path = "src/lib/mod.rs" | ||
|
||
[[bin]] | ||
name = "notmuch-mailmover" | ||
path = "src/main.rs" | ||
|
||
[[bin]] | ||
name = "notmuch-mailmover-generate" | ||
path = "src/generate.rs" | ||
|
||
[profile.release] | ||
lto = true | ||
panic = "abort" | ||
codegen-units = 1 | ||
|
||
[dependencies] | ||
uuid = { version = "1.10.0", features = ["v4"] } | ||
anyhow = "1.0.82" | ||
|
@@ -18,16 +35,9 @@ serde_yaml = "0.9.34" | |
directories = "5.0.1" | ||
shellexpand = "3.0.0" | ||
clap = { version = "4.5.13", features = [ "derive", "cargo" ] } | ||
|
||
[dev-dependencies] | ||
regex = "1.10.6" | ||
|
||
[build-dependencies] | ||
clap = { version = "4.5.13", features = [ "derive", "cargo" ] } | ||
clap_complete = "4.5.13" | ||
clap_mangen = "0.2.23" | ||
git-version = "0.3.9" | ||
|
||
[profile.release] | ||
lto = true | ||
panic = "abort" | ||
codegen-units = 1 | ||
[dev-dependencies] | ||
regex = "1.10.6" |
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 std::env; | ||
use std::ffi::OsString; | ||
use std::fs::{create_dir_all, File}; | ||
use std::path::Path; | ||
use std::str::FromStr; | ||
|
||
use clap::{CommandFactory, ValueEnum}; | ||
use clap_complete::{generate_to, Shell}; | ||
use clap_mangen::Man; | ||
|
||
use nm_mailmover::cli::Cli; | ||
|
||
fn main() { | ||
let dir = env::var_os("GEN_ARTIFACTS").unwrap_or(OsString::from_str(".").unwrap()); | ||
let out = Path::new(&dir); | ||
create_dir_all(out).unwrap(); | ||
let cmd = &mut Cli::command(); | ||
|
||
Man::new(cmd.clone()) | ||
.render(&mut File::create(out.join("notmuch-mailmover.1")).unwrap()) | ||
.unwrap(); | ||
|
||
for shell in Shell::value_variants() { | ||
generate_to(*shell, cmd, "notmuch-mailmover", out).unwrap(); | ||
} | ||
} |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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,5 @@ | ||
pub mod action; | ||
pub mod cli; | ||
pub mod config; | ||
pub mod engine; | ||
pub mod repo; |
File renamed without changes.
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