Andrey Smirnov
c24ce2fd5f
feat: humanize timestamp and size in osctl list
output
...
Fixes #1565
Examples:
```
$ osctl list -l
MODE SIZE(B) LASTMOD NAME
drwxr-xr-x 4096 Dec 17 16:37:19 .
-rwxr-xr-x 0 Dec 17 16:37:19 .dockerenv
drwxr-xr-x 4096 Dec 17 16:35:20 bin
drwxr-xr-x 4096 Dec 17 16:37:20 boot
drwxr-xr-x 5480 Dec 17 16:37:19 dev
drwxr-xr-x 4096 Dec 17 16:37:19 etc
drwxr-xr-x 4096 Dec 17 16:35:19 lib
drwxr-xr-x 4096 Dec 17 16:35:21 mnt
drwxr-xr-x 4096 Dec 17 16:39:17 opt
dr-xr-xr-x 0 Dec 17 16:37:19 proc
drwxr-x--- 4096 Dec 5 06:39:44 root
drwxr-xr-x 4096 Dec 17 16:39:06 run
drwxr-xr-x 4096 Dec 17 16:35:20 sbin
dr-xr-xr-x 0 Dec 17 16:37:19 sys
dtrwxrwxrwx 4096 Dec 17 16:38:05 tmp
drwxr-xr-x 4096 Dec 17 16:35:21 usr
drwxr-xr-x 4096 Dec 17 16:37:19 var
```
```
$ osctl list -lH
MODE SIZE(B) LASTMOD NAME
drwxr-xr-x 4.1 kB 18 minutes ago .
-rwxr-xr-x 0 B 18 minutes ago .dockerenv
drwxr-xr-x 4.1 kB 20 minutes ago bin
drwxr-xr-x 4.1 kB 18 minutes ago boot
drwxr-xr-x 5.5 kB 18 minutes ago dev
drwxr-xr-x 4.1 kB 18 minutes ago etc
drwxr-xr-x 4.1 kB 20 minutes ago lib
drwxr-xr-x 4.1 kB 20 minutes ago mnt
drwxr-xr-x 4.1 kB 16 minutes ago opt
dr-xr-xr-x 0 B 18 minutes ago proc
drwxr-x--- 4.1 kB 1 week ago root
drwxr-xr-x 4.1 kB 16 minutes ago run
drwxr-xr-x 4.1 kB 20 minutes ago sbin
dr-xr-xr-x 0 B 18 minutes ago sys
dtrwxrwxrwx 4.1 kB 17 minutes ago tmp
drwxr-xr-x 4.1 kB 20 minutes ago usr
drwxr-xr-x 4.1 kB 18 minutes ago var
```
Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-12-17 23:21:28 +03:00
Andrey Smirnov
4c18f21088
feat: osctl bash/zsh completion support
...
Fixes #1500
Most of the help lines borrowed from kubectl. Basic completion seems to
work, but the `osctl` binary should be named `osctl` (not
`osctl-linux-amd64` or such).
Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-12-17 16:27:51 +03:00
Andrew Rynhard
ad863a7f92
refactor: rename protobuf services, RPCs, and messages
...
This PR brings our protobuf files into conformance with the protobuf
style guide, and community conventions. It is purely renames, along with
generated docs.
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-12-11 11:41:40 -08:00