An open API service indexing awesome lists of open source software.

https://github.com/philippgille/apiomat-cli

aom - CLI for ApiOmat, written in Go
https://github.com/philippgille/apiomat-cli

aom apiomat cli go golang

Last synced: 8 months ago
JSON representation

aom - CLI for ApiOmat, written in Go

Awesome Lists containing this project

README

          

# apiomat-cli

`aom` - CLI for ApiOmat, written in Go

Under construction!

under-construction [![baby-gopher](https://raw.githubusercontent.com/drnic/babygopher-site/gh-pages/images/babygopher-badge.png)](http://www.babygopher.org)

## Contents

- [Installation](#installation)
- [Usage](#usage)
- [Examples](#examples)

## Installation

`go get "github.com/philippgille/apiomat-cli/aom"`

## Usage

```
aom [flags]
aom [command]

Available Commands:
class Manages the "MetaModel" resource
help Help about any command
version Prints the version of the ApiOmat server

Flags:
-d, --debug Debug switch. Activate to include stack trace when errors are logged
-h, --help help for aom
-v, --version Print the version of the aom CLI (not of the ApiOmat server - use "aom version" for that

Use "aom [command] --help" for more information about a command.
```

### Examples

- Print the version of the ApiOmat server:
```bash
$ aom version --baseUrl "https://apiomat.yourcompany.com/yambas/rest"
ApiOmat version: {"server":"null:443","version":"2.6.2-107E"}
```
- List all classes of module "MyModule":
```bash
$ aom class ls --module "MyModule" --baseUrl "https://apiomat.yourcompany.com/yambas/rest" --username "john" --password "secret"
Classes of module MyModule:
[
struct {
AllowedRolesCreate: [
],
AllowedRolesGrant: [
],
...
},
...
]
```