Ctrl K
ComunidadGuías…

devscripts/README.md

Rama master · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
# Devscripts

This directory contains scripts which can be useful for development.
They are not intented for regular use by end users.

## Requirements

* Bash (although we try to avoid bashism in devscripts, things can happen)
* docker-compose
* HTTPie (https://httpie.org)
* jq (https://stedolan.github.io/jq)

## Scripts

* `add-device`: Add a test device to ShellHub (`--fake` for API-only, `--agent` for real agent container)
* `get-devices`: Get devices from API
* `lint-code`: Run code linter
* `test-unit`: Run unit test
* `gen-mock`: Generate/update mock objects for testing
* `run-agent`: Runs a native agent, building if necessary, with the provided tag.
* `update-go`: Updates the Go version of the project to <version>.
* `comment-scan`: Reports the comments the code style does not allow; `--diff` checks only what your branch adds, as CI does.