This repository was archived by the owner on Dec 15, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +42
-12
lines changed Expand file tree Collapse file tree 5 files changed +42
-12
lines changed Original file line number Diff line number Diff line change
1
+ name : github-release
2
+
3
+ on :
4
+ release :
5
+ types : [ created ]
6
+
7
+ jobs :
8
+ github-release :
9
+ name : Release for ${{ matrix.os }}
10
+ runs-on : ${{ matrix.os }}
11
+ strategy :
12
+ matrix :
13
+ include :
14
+ - os : ubuntu-latest
15
+ artifact_name : iotdb
16
+ asset_name : iotdb-linux
17
+ - os : windows-latest
18
+ artifact_name : iotdb.exe
19
+ asset_name : iotdb.exe
20
+ - os : macos-latest
21
+ artifact_name : iotdb
22
+ asset_name : iotdb-mac
23
+ steps :
24
+ - uses : actions/checkout@v2
25
+ - name : Build
26
+ run : cargo build --release
27
+ - name : Upload binaries to release
28
+ uses : svenstaro/upload-release-action@v2
29
+ with :
30
+ repo_token : ${{secrets.DEPLOY_KEY}}
31
+ file : target/release/${{ matrix.artifact_name }}
32
+ asset_name : ${{ matrix.asset_name }}
33
+ tag : ${{ github.ref }}
Original file line number Diff line number Diff line change @@ -18,4 +18,4 @@ path = "src/main.rs"
18
18
dirs = " 4.0.0"
19
19
structopt = " 0.3"
20
20
rustyline = " 9.0.0"
21
- iotdb = { git = " https://github.com/francis-du/iotdb-rs.git" , rev = " 5c9b010 " }
21
+ iotdb = { git = " https://github.com/francis-du/iotdb-rs.git" , rev = " 8551bd5 " }
Original file line number Diff line number Diff line change @@ -71,9 +71,8 @@ iotdb -u root -p root --endpoint 127.0.0.1:6667 -t UTC+8
71
71
$ iotdb " SHOW STORAGE GROUP"
72
72
+---------------+
73
73
| storage group |
74
- +===============+
75
- | root.ln |
76
74
+---------------+
75
+ | root.ln |
77
76
| root.sg1 |
78
77
+---------------+
79
78
```
@@ -90,9 +89,8 @@ $ iotdb -u root -p root --endpoint 127.0.0.1:6667 -t UTC+8
90
89
IOTDB#(127.0.0.1:6667)> SHOW STORAGE GROUP
91
90
+---------------+
92
91
| storage group |
93
- +===============+
94
- | root.ln |
95
92
+---------------+
93
+ | root.ln |
96
94
| root.sg1 |
97
95
+---------------+
98
96
```
Original file line number Diff line number Diff line change @@ -71,9 +71,8 @@ iotdb -u root -p root --endpoint 127.0.0.1:6667 -t UTC+8
71
71
$ iotdb " SHOW STORAGE GROUP"
72
72
+---------------+
73
73
| storage group |
74
- +===============+
75
- | root.ln |
76
74
+---------------+
75
+ | root.ln |
77
76
| root.sg1 |
78
77
+---------------+
79
78
```
@@ -90,9 +89,8 @@ $ iotdb -u root -p root --endpoint 127.0.0.1:6667 -t UTC+8
90
89
IOTDB#(127.0.0.1:6667)> SHOW STORAGE GROUP
91
90
+---------------+
92
91
| storage group |
93
- +===============+
94
- | root.ln |
95
92
+---------------+
93
+ | root.ln |
96
94
| root.sg1 |
97
95
+---------------+
98
96
```
Original file line number Diff line number Diff line change @@ -128,13 +128,14 @@ fn open_session(config: Config) -> Session {
128
128
129
129
fn readline ( mut session : Session , prompt : String ) {
130
130
println ! ( "{}" , ASCII_NAME ) ;
131
-
132
131
let his_file: PathBuf = dirs:: home_dir ( )
133
132
. unwrap_or ( PathBuf :: from ( "/home" ) )
134
- . join ( "iotdb.his " ) ;
133
+ . join ( ".iotdb_his " ) ;
135
134
136
135
let mut rl = Editor :: < ( ) > :: new ( ) ;
137
- rl. load_history ( his_file. as_path ( ) ) . unwrap ( ) ;
136
+ if his_file. as_path ( ) . exists ( ) {
137
+ rl. load_history ( his_file. as_path ( ) ) . unwrap ( ) ;
138
+ }
138
139
loop {
139
140
let readline = rl. readline ( prompt. as_str ( ) ) ;
140
141
match readline {
You can’t perform that action at this time.
0 commit comments