Skip to content

Commit 2e39367

Browse files
changed author email and fixed clap beta 5
1 parent 7897658 commit 2e39367

File tree

7 files changed

+18
-20
lines changed

7 files changed

+18
-20
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "gxib"
3-
version = "0.2.2-alpha.0"
4-
authors = ["aniketfuryrocks <[email protected]>"]
3+
version = "0.2.3"
4+
authors = ["aniketfuryrocks <[email protected]>"]
55
edition = "2018"
66
description = "build tool for the gxi-rs project"
77
repository = "https://github.com/gxi-rs/gxib.git"
@@ -13,7 +13,7 @@ categories = ["command-line-utilities", "development-tools::build-utils", "web-p
1313
members = ["examples/web", "examples/desktop"]
1414

1515
[dependencies]
16-
clap = "3.0.0-beta.2"
16+
clap = "3.0.0-beta.5"
1717
notify = "5.0.0-pre"
1818
anyhow = "1.0.40"
1919
seahash = "4.1.0"

examples/desktop/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "desktop"
33
version = "0.1.0"
4-
authors = ["aniketfuryrocks <[email protected]>"]
4+
authors = ["aniketfuryrocks <[email protected]>"]
55
edition = "2018"
66

77
[dependencies]
8-
gxi = { version = "0.3.0-alpha.1", features = ["desktop"] }
8+
gxi = { version = "0.3.0-alpha.1", features = ["desktop"] }

examples/web/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "web"
33
version = "0.1.0"
4-
authors = ["aniketfuryrocks <[email protected]>"]
4+
authors = ["aniketfuryrocks <[email protected]>"]
55
edition = "2018"
66

77
[dependencies]

src/cli/args.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
use clap::{AppSettings, Clap, ValueHint};
1+
use clap::{Parser, ValueHint};
22

33
use crate::*;
44
use std::path::PathBuf;
55

6-
#[derive(Clap)]
6+
#[derive(Parser)]
77
#[clap(
88
version = clap::crate_version ! (),
9-
author = "aniketfuryrocks <[email protected]>",
10-
setting = AppSettings::ColoredHelp
9+
author = crate::author!()
1110
)]
1211
pub struct Args {
1312
/// project dir
@@ -17,7 +16,7 @@ pub struct Args {
1716
pub sub_cmd: SubCommands,
1817
}
1918

20-
#[derive(Clap)]
19+
#[derive(Parser)]
2120
pub enum SubCommands {
2221
Web(WebArgs),
2322
Desktop(DesktopArgs),

src/cli/desktop_args.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
use clap::{AppSettings, Clap};
1+
use clap::Parser;
22

33
/// build for the desktop platform using gtk
4-
#[derive(Clap)]
4+
#[derive(Parser)]
55
#[clap(
66
version = clap::crate_version!(),
7-
author = "aniketfuryrocks <[email protected]>",
8-
setting = AppSettings::ColoredHelp
7+
author = crate::author!()
98
)]
109
pub struct DesktopArgs {}

src/cli/web_args.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
use clap::{AppSettings, Clap, ValueHint};
1+
use clap::{Parser, ValueHint};
22
use std::path::PathBuf;
33

44
/// build for the web platform using wasm
5-
#[derive(Clap)]
5+
#[derive(Parser)]
66
#[clap(
77
version = clap::crate_version!(),
8-
author = "aniketfuryrocks <[email protected]>",
9-
setting = AppSettings::ColoredHelp
8+
author = crate::author!()
109
)]
1110
pub struct WebArgs {
1211
/// start serving files at host:port

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
use std::path::Path;
22

3-
use clap::Clap;
43
use simplelog::*;
54
use tokio::fs::{read, write};
65

76
pub use crate::cli::*;
87
pub use crate::pipelines::*;
98
pub use crate::utils::*;
109
pub use anyhow::*;
10+
use clap::Parser;
1111
pub use log::*;
1212

1313
mod cli;
14+
mod macros;
1415
mod pipelines;
1516
mod utils;
1617

0 commit comments

Comments
 (0)