Skip to content

Commit 4e2909b

Browse files
del rubbish
1 parent 1c73bd1 commit 4e2909b

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

command/bin/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ fn main() {
2424
init_shell(&mut session_context)
2525
}
2626

27-
/* C test
27+
// C test
28+
/*
2829
#[link(name="hello")]
2930
extern "C"{
3031
fn hello();
@@ -34,4 +35,5 @@ fn main(){
3435
unsafe{
3536
hello()
3637
}
37-
}*/
38+
}
39+
*/

command/src/commands/download.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ async fn download(link: &str, filename: &str) -> Result<(),Box<dyn std::error::E
6262

6363
// apt update new
6464

65+
const _GITHUB_RELEASE: &str = "https://github.com/zhangzijie-pro/Tiks/releases/download/1.0.0/tiks";
66+
6567
// upload soon
6668
pub fn update(version: &str) -> std::io::Result<()>{
6769
let mut version = version;

command/src/state_code.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
pub const STATUE_CODE:usize=0;
2-
pub const ERR_CODE:usize=109;
3-
42

53
pub fn missing_pattern() -> (usize, String) {
64
(104, "Error: Missing parameters".to_string())
@@ -32,9 +30,4 @@ pub fn pipe_err() -> (usize,String){
3230

3331
pub fn not_found() -> (usize,String){
3432
(404,"Error: Not found this command in terimal".to_string())
35-
}
36-
37-
pub fn normal_success<T: std::fmt::Display + From<String>>(output:T) -> (usize,String){
38-
let output = format!("{}",output);
39-
(STATUE_CODE,output)
4033
}

0 commit comments

Comments
 (0)