https://github.com/kspviswa/lsgo
ls command in golang for fun & learning
https://github.com/kspviswa/lsgo
tools-engineering
Last synced: about 1 year ago
JSON representation
ls command in golang for fun & learning
- Host: GitHub
- URL: https://github.com/kspviswa/lsgo
- Owner: kspviswa
- License: mit
- Created: 2017-10-20T19:44:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-01-02T01:21:34.000Z (over 2 years ago)
- Last Synced: 2025-02-14T13:46:05.781Z (over 1 year ago)
- Topics: tools-engineering
- Language: Go
- Homepage:
- Size: 1.42 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lsgo
## ls command in golang for fun & learning
### Usage
```
./ls --help
NAME:
ls ( implemented in golang ) - ls [flags] [command][args]
USAGE:
ls [global options] command [command options] [arguments...]
VERSION:
0.1
AUTHOR:
Viswa Kumar
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
-l, --long include extended information
-d, --dronly include only directories
-f, --fileonly include only regular files
--hr, --humanfriendly view size in humar readable format
-t, --tree view tree structure ( recursive lookup )
--help, -h show help
--version, -v print the version
COPYRIGHT:
MIT Licensed
```
### Sample outputs
```
./ls -hr
+-----------+--------+------------+---------------------+-------+
| NAME | SIZE | PERMS | AT | DIR |
+-----------+--------+------------+---------------------+-------+
| .git | 4K | drwxrwxrwx | 2017-10-22 01:15:14 | true |
| demo.json | 116.5K | -rwxrwxrwx | 2017-10-22 01:02:45 | false |
| LICENSE | 1.1K | -rwxrwxrwx | 2017-10-21 19:34:57 | false |
| ls | 3.5M | -rwxrwxrwx | 2017-10-22 00:31:26 | false |
| ls.go | 3.2K | -rwxrwxrwx | 2017-10-22 00:31:23 | false |
| README.md | 166B | -rwxrwxrwx | 2017-10-22 01:11:07 | false |
+-----------+--------+------------+---------------------+-------+
```