File tree Expand file tree Collapse file tree 1 file changed +27
-33
lines changed Expand file tree Collapse file tree 1 file changed +27
-33
lines changed Original file line number Diff line number Diff line change 1
- // This is a Simple Terimal in RUST
2
- // Tiks
3
- // Provided for your reference and learning. If there are any improvements or errors.
4
- // You can git push to main. Welcome everyone to collaborate and improve together
5
-
6
- // There is some error or other suggestions contact me : [email protected]
7
- // Cargo run
8
-
9
-
10
-
11
- use command:: env:: set_env;
12
- use command:: run:: init_shell;
13
- use command:: start_logo:: start_logo;
14
- use command:: root:: new_session;
15
-
16
- fn main ( ) {
17
- #[ cfg( windows) ]
18
- start_logo ( ) ;
19
- #[ cfg( not( windows) ) ]
20
- start_logo ( ) ;
21
-
22
- // new user
23
- let mut session_context = new_session ( ) ;
24
-
25
- // set envirment path in Tiks
26
- #[ cfg( target_os="linux" ) ]
27
- set_env ( ) ;
28
- #[ cfg( target_os="windows" ) ]
29
- set_env ( ) ;
30
-
31
- // init shell
32
- init_shell ( & mut session_context)
33
- }
1
+ // This is a Simple Terimal in RUST
2
+ // Tiks
3
+ // Provided for your reference and learning. If there are any improvements or errors.
4
+ // You can git push to main. Welcome everyone to collaborate and improve together
5
+
6
+ // There is some error or other suggestions contact me : [email protected]
7
+ // Cargo run
8
+
9
+
10
+
11
+ use command:: env:: set_env;
12
+ use command:: run:: init_shell;
13
+ use command:: start_logo:: start_logo;
14
+ use command:: root:: new_session;
15
+
16
+ fn main ( ) {
17
+ start_logo ( ) ;
18
+
19
+ // new user
20
+ let mut session_context = new_session ( ) ;
21
+
22
+ // set os envirment path in Tiks
23
+ set_env ( ) ;
24
+
25
+ // init shell
26
+ init_shell ( & mut session_context)
27
+ }
You can’t perform that action at this time.
0 commit comments