Skip to content

Commit e1c1d67

Browse files
authored
Merge pull request #6 from d4rkstar/main
improved markdown for tools
2 parents 91b1584 + d721426 commit e1c1d67

3 files changed

Lines changed: 35 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
.DS_Store
1919
.git-hooks/
2020
.vscode/
21+
.idea/
2122
.task/
2223
.latestcheck
2324
.test_fail_then_succeed

tools/base64.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,37 @@
1+
2+
# Tool base64
3+
4+
base64 utility acts as a base64 decoder when passed the --decode (or -d) flag and as a base64 encoder
5+
otherwise. As a decoder it only accepts raw base64 input and as an encoder it does not produce the framing
6+
lines. base64 reads standard input or file if it is provided and writes to standard output. Options
7+
--wrap (or -w) and --ignore-garbage (or -i) are accepted for compatibility with GNU base64, but the latter
8+
is unimplemented and silently ignored.
9+
110
```text
211
Usage:
312
ops -base64 [options] <string>
413
```
514

6-
# Options
15+
## Options
716

817
```
918
-h, --help Display this help message
1019
-e, --encode <string> Encode a string to base64
1120
-d, --decode <string> Decode a base64 string
21+
```
22+
23+
## Examples
24+
25+
### Encoding:
26+
27+
```bash
28+
ops -base64 -e "OpenServerless is wonderful"
29+
T3BlblNlcnZlcmxlc3MgaXMgd29uZGVyZnVs
30+
```
31+
32+
### Decoding:
33+
34+
```bash
35+
$ ops -base64 -d "T3BlblNlcnZlcmxlc3MgaXMgd29uZGVyZnVs"
36+
OpenServerless is wonderful
1237
```

tools/datefmt.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Usage:
55
ops -datefmt [options] [arguments]
66
```
77

8-
# Options
8+
## Options
99

1010
```
1111
-h, --help print this help info
@@ -38,3 +38,10 @@ Possible formats (they follows the standard naming of go time formats, with the
3838
- TimeOnly
3939
- Milliseconds
4040
- ms
41+
42+
## Example
43+
44+
```bash
45+
$ ops -datefmt -f DateTime
46+
2024-08-11 03:00:34
47+
```

0 commit comments

Comments
 (0)