Commit c4070f0
committed
fix(cortex-cli): expand tilde in import command file paths
Fixes bounty issue #1571
The import command was treating the tilde (~) character literally instead
of expanding it to the user's home directory. This prevented users from
using paths like ~/file.json with the cortex import command.
The fix uses the existing expand_home_path() function from cortex-common
to properly expand the tilde before reading the file.1 parent a6338de commit c4070f0
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
47 | | - | |
48 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| |||
0 commit comments