"feat(ml_interface): remove unused import and refactor GitGrabber implementation"
This commit is contained in:
parent
c98dedf347
commit
1cf6d12bd6
@ -1,19 +1,10 @@
|
|||||||
use core::panic;
|
use core::panic;
|
||||||
use std::{
|
use std::{process::Command, str::from_utf8};
|
||||||
fs::write,
|
|
||||||
io::Write,
|
|
||||||
process::{Command, Output},
|
|
||||||
str::from_utf8,
|
|
||||||
};
|
|
||||||
|
|
||||||
// this is a comment test here
|
// this is a comment test here
|
||||||
pub struct GitGrabber {}
|
pub struct GitGrabber {}
|
||||||
|
|
||||||
impl GitGrabber {
|
impl GitGrabber {
|
||||||
pub fn new() -> Self {
|
|
||||||
GitGrabber {}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn get_current_branch() -> String {
|
pub fn get_current_branch() -> String {
|
||||||
let branch = Command::new("git")
|
let branch = Command::new("git")
|
||||||
.args(["branch", "--show-current"])
|
.args(["branch", "--show-current"])
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
use std::error::Error;
|
|
||||||
|
|
||||||
use reqwest::blocking::Client;
|
use reqwest::blocking::Client;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
Loading…
Reference in New Issue
Block a user