cli

package module
v0.31.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 0 Imported by: 0

README

ApiGear CLI

CLI Flags

Command line documentation is available in the docs folder.

Install

ApiGear CLI is a command line application that runs on Windows, Mac and Linux. You can download the latest version from the release page.

Note: The product has not yet a certification from Microsoft, Apple or Linux. So you may need to disable the security check to run the application.

Building from source

Install latest Go from Go Dev

build using

go build ./cmd/apigear

and use apigear command line:

./apigear --help

Development

For development you need some environment variables:

export APIGEAR_GIT_PUBLIC_TOKEN=your_token
export APIGEAR_GIT_AUTH_TOKEN=your_token

The git public token provides access to public repositories. The git auth token provides access to private template repositories.

You can build and run the project using the following commands:

go run cmd/apigear/main.go --help

To build the project:

go build ./cmd/apigear

To run all the tests:

```bash
go test "./..."

To run the debugger

dlv debug cmd/apigear/main.go -- --help

Program Settings

Settings are stored in the file ~/.apigear/config.json. The file is created automatically when the first command is executed.

Log Files

Log files are stored in the file ~/.apigear/*.log. Outdated log-files are automatically deleted.

Template Cache

The template cache is stored in the file ~/.apigear/templates. The file is created automatically when a template is downloaded from a git-repository.

Template Registry

The template registry is stored in the file ~/.apigear/registry/registry.json. The file is created automatically when the registry is updated. The registry is currently hosted on github.

Documentation

Overview

cli package provides a library and command line interface for apigear.io tool. The library is used by the command line interface and can be used by other applications.

Directories

Path Synopsis
cmd
Package cmd contains the the various commands that can be executed
Package cmd contains the the various commands that can be executed
apigear
Package main package for apigear cli tool
Package main package for apigear cli tool
pkg
Package pkg is collection of library packages for apigear tools
Package pkg is collection of library packages for apigear tools
cfg
cmd
Package cmd contains the CLI for the application.
Package cmd contains the CLI for the application.
gen
git
idl
log
mon
net
net/olnk
Olink Adapter for Simulation
Olink Adapter for Simulation
prj
sim
sol
spec
Package spec defines the specification types for the object api.
Package spec defines the specification types for the object api.
up
vfs
Package vfs contains files for the virtual embedded file system these are in general demo files that are used to create a new project
Package vfs contains files for the virtual embedded file system these are in general demo files that are used to create a new project

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL