1
0
mirror of https://github.com/jht5945/buildj.git synced 2025-12-29 02:10:04 +08:00

feat: exit with non 0, when fails

This commit is contained in:
2020-12-26 22:21:17 +08:00
parent 6fa4b60bc4
commit bd52eb6042
8 changed files with 609 additions and 606 deletions

View File

@@ -1,6 +1,6 @@
use std::{ env, fs::{ self, File }, io::{ Read, ErrorKind }, path::Path, process::Command };
use rust_util::{ XResult, new_box_ioerror, util_io::{ self, DEFAULT_BUF_SIZE, PrintStatusContext } };
use crypto::{ digest::Digest, md5::Md5, sha1::Sha1, sha2::{ Sha256, Sha512 } };
use std::{env, fs::{self, File}, io::{Read, ErrorKind}, path::Path, process::Command};
use rust_util::{XResult, new_box_ioerror, util_io::{self, DEFAULT_BUF_SIZE, PrintStatusContext}};
use crypto::{digest::Digest, md5::Md5, sha1::Sha1, sha2::{Sha256, Sha512}};
pub fn get_args_as_vec() -> Vec<String> {
env::args().collect::<Vec<String>>()