https://github.com/lumakernel/inspect-cmd
Command line tool to inspect inputs.
https://github.com/lumakernel/inspect-cmd
command-line-tool go
Last synced: about 2 months ago
JSON representation
Command line tool to inspect inputs.
- Host: GitHub
- URL: https://github.com/lumakernel/inspect-cmd
- Owner: LumaKernel
- Created: 2020-06-30T17:02:05.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-01T07:05:44.000Z (over 5 years ago)
- Last Synced: 2025-03-15T07:03:16.990Z (9 months ago)
- Topics: command-line-tool, go
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# inspect-cmd
Command line that tool tells us the real appearance of inputs.
```
$ go get github.com/LumaKernel/inspect-cmd
```
```
$ inspect-cmd hello world!
Args length: 3
Args[0]: 11 bytes 11 runes
69 6e 73 70 65 63 74 2d 63 6d 64 |inspect-cmd|
Args[1]: 5 bytes 5 runes
68 65 6c 6c 6f |hello|
Args[2]: 6 bytes 6 runes
77 6f 72 6c 64 21 |world!|
stdin: not available
```
```
$ # from bash
$ echo "piped" | inspect-cmd -c <<<2*3~/" "
Args length: 2
Args[0]: 11 bytes 11 runes
69 6e 73 70 65 63 74 2d 63 6d 64 |inspect-cmd|
Args[1]: 2 bytes 2 runes
2d 63 |-c|
stdin: exists
32 2a 33 7e 2f 20 20 0a |2*3~/ .|
```