You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xet is a command-line tool for managing and modifying values in multiple files using a configuration file (`.xet`). It supports various methods of identifying and modifying values, including tags, line/column positions, and regular expressions.
10
+
You can create presets and change between them on the fly.
10
11
11
12
## Installation
12
13
13
14
14
15
```sh
15
-
pip install xet
16
+
pipx install xet
16
17
```
17
18
or
18
19
```sh
19
-
pipx install xet
20
+
pip install xet
20
21
```
21
22
22
23
23
24
## Commands
24
25
25
-
### Initialize Configuration
26
+
### Configuration
27
+
28
+
#### Initialize Configuration
26
29
27
30
```sh
28
31
xet init
29
32
```
30
33
- Options:
31
-
-`-g, --global`: Global Mode. Creates a `.xet` file in the XDG_CONFIG_HOME folder instead of locally.
34
+
-`-g, --global`: Global Mode. Creates a `.xet` file in the XDG_CONFIG_HOME folder instead of locally.
32
35
33
36
Creates an empty `.xet` if it does not already exist.
34
37
35
-
Any xet command will use the `.xet` file in the immediate directory, unless the `-g, --global` flag is set, then the global `.xet` file will be used instead.
38
+
Any xet command will use the `.xet` file in the immediate directory, if there is no local `.xet` the global `.xet` file will be used instead. You can force the usage of the global `.xet` using the `-g, --global` flag.
39
+
40
+
#### Open .xet in editor
36
41
37
42
```sh
38
43
xet edit
@@ -42,10 +47,33 @@ xet edit
42
47
43
48
Opens `.xet` in your standard editor or nano.
44
49
50
+
#### Clarify .xet directory
51
+
52
+
```sh
53
+
xet which
54
+
```
45
55
46
-
### Add Entries to Configuration
56
+
Shows the absolute path to the default `.xet` that will be used if any xet command is run.
47
57
48
-
#### Add a Tag-Based Entry
58
+
#### Print .xet entries
59
+
60
+
```sh
61
+
xet show [options]
62
+
```
63
+
64
+
Options:
65
+
-`-e, --except <flags>`: Exclude entries with specified flags.
66
+
-`-o, --only <flags>`: Include only entries with specified flags.
67
+
-`-n, --names <names>`: Include only entries with specified names.
68
+
-`-p, --path <path>`: Include only entries with specified path.
69
+
-`-g, --global`: Use the global `.xet`.
70
+
71
+
Shows the `.xet` entries with the given optional filters applied.
0 commit comments