Andrey Smirnov 26f222e6db refactor: osctl code cleanup, no functional changes
Fixes #1666

1. Remove custom validation of Args, use cobra-provided validators.
2. Always use errors to stop the execution flow, don't rely on
`log.Fatal` and `panic` for normal flows. This makes sure `defer` always
has a chance to run, connection is shut down in a clean way.
3. Command `docs` is hidden, as it's not for users.
4. Global variable `globalCtx` is removed, `WithClient` is used to pass
context to the command.
5. `setupClientE` renamed to `WithClient`, `setupClient` removed.
6. Code from `cmd/root.go` moved to `pkg/helpers` when possible.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-12-20 00:32:26 +03:00
..
2019-11-10 15:59:51 -08:00
2019-11-11 21:48:34 -08:00
2019-10-18 21:28:40 -07:00
2019-10-31 14:59:17 -07:00
2019-10-18 23:46:12 -07:00
2019-10-18 21:28:40 -07:00
2019-10-18 21:28:40 -07:00
2019-10-19 14:45:47 -07:00
2019-10-18 21:28:40 -07:00
2019-10-18 21:28:40 -07:00
2019-10-25 10:26:36 -07:00
2019-11-09 05:04:16 -08:00

docs

A static site for Talos documentation

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:3000
npm run dev

# build for production and launch server
npm run build
npm run start

# generate static project
npm run generate

For detailed explanation on how things work, check out Nuxt.js docs.