aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'xtask/src/main.rs')
-rw-r--r--xtask/src/main.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/xtask/src/main.rs b/xtask/src/main.rs
index 960927fc0..ce3353410 100644
--- a/xtask/src/main.rs
+++ b/xtask/src/main.rs
@@ -28,8 +28,6 @@ use std::{
28use walkdir::{DirEntry, WalkDir}; 28use walkdir::{DirEntry, WalkDir};
29use xshell::{cmd, cp, pushd, pushenv}; 29use xshell::{cmd, cp, pushd, pushenv};
30 30
31use crate::dist::DistCmd;
32
33fn main() -> Result<()> { 31fn main() -> Result<()> {
34 let _d = pushd(project_root())?; 32 let _d = pushd(project_root())?;
35 33
@@ -44,9 +42,7 @@ fn main() -> Result<()> {
44 flags::XtaskCmd::PreCache(cmd) => cmd.run(), 42 flags::XtaskCmd::PreCache(cmd) => cmd.run(),
45 flags::XtaskCmd::Release(cmd) => cmd.run(), 43 flags::XtaskCmd::Release(cmd) => cmd.run(),
46 flags::XtaskCmd::Promote(cmd) => cmd.run(), 44 flags::XtaskCmd::Promote(cmd) => cmd.run(),
47 flags::XtaskCmd::Dist(flags) => { 45 flags::XtaskCmd::Dist(cmd) => cmd.run(),
48 DistCmd { nightly: flags.nightly, client_version: flags.client }.run()
49 }
50 flags::XtaskCmd::Metrics(cmd) => cmd.run(), 46 flags::XtaskCmd::Metrics(cmd) => cmd.run(),
51 flags::XtaskCmd::Bb(cmd) => { 47 flags::XtaskCmd::Bb(cmd) => {
52 { 48 {
@@ -112,7 +108,7 @@ fn run_fuzzer() -> Result<()> {
112} 108}
113 109
114fn date_iso() -> Result<String> { 110fn date_iso() -> Result<String> {
115 let res = cmd!("date --iso --utc").read()?; 111 let res = cmd!("date -u +%Y-%m-%d").read()?;
116 Ok(res) 112 Ok(res)
117} 113}
118 114