remove unneeded struct
This commit is contained in:
parent
28c1bfd832
commit
59e22e31c8
1 changed files with 0 additions and 16 deletions
|
@ -1,21 +1,5 @@
|
|||
use colored::Colorize;
|
||||
|
||||
pub enum ExitCode {
|
||||
ParseError = 2,
|
||||
FilesystemError = 3,
|
||||
RepositoryError = 4,
|
||||
RemoteError = 5,
|
||||
PushError = 6,
|
||||
FetchError = 7,
|
||||
ConfigError = 8,
|
||||
HaltError = 130,
|
||||
}
|
||||
|
||||
pub struct ReturnData {
|
||||
pub code: ExitCode,
|
||||
pub msg: String,
|
||||
}
|
||||
|
||||
pub fn error(msg: String) {
|
||||
eprintln!("{} {}", "error:".red().bold(), msg);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue