cli

command module
v0.0.0-...-b8add86 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

README

badaas-cli

badaas-cli is the command line tool that makes it possible to configure and run a badaas application.

Install with go install

For simply installing it, use:

go install github.com/ditrit/badaas-cli

Or you can build it from sources.

Build from sources

Get the sources of the project, either by visiting the releases page and downloading an archive or clone the main branch (please be aware that is it not a stable version).

To build the project:

  • Install go v1.18

  • Install project dependencies

    go get
    
  • Run build command

    go build .
    

Well done, you have a binary badaas-cli at the root of the project.

Commands

You can see the available commands by running:

badaas-cli help

For more information about the functionality provided and how to use each command use:

badaas-cli help [command]
badaas-cli gen docker

gen docker is the command you can use to generate the files and configurations necessary for your project to use badaas in a simple way.

gen docker will generate the docker and configuration files needed to run the application in the badaas/docker and badaas/config folders respectively.

All these files can be modified in case you need different values than those provided by default. For more information about the configuration head to configuration docs.

A Makefile will be generated for the execution of a badaas server, with the command:

make badaas_run
badaas-cli gen conditions

gen conditions is the command you can use to generate conditions to query your objects using badaas-orm. For each BaDaaS Model found in the input packages a file containing all possible Conditions on that object will be generated, allowing you to use badaas-orm.

Its use is recommended through go generate. To see an example of how to do it click here.

Contributing

See this section.

License

badaas-cli is Licensed under the Mozilla Public License Version 2.0.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
gen
gen/conditions/tests/belongsto
Code generated by badaas-cli v0.0.0, DO NOT EDIT.
Code generated by badaas-cli v0.0.0, DO NOT EDIT.
gen/conditions/tests/hasmany
Code generated by badaas-cli v0.0.0, DO NOT EDIT.
Code generated by badaas-cli v0.0.0, DO NOT EDIT.
gen/conditions/tests/hasmanywithpointers
Code generated by badaas-cli v0.0.0, DO NOT EDIT.
Code generated by badaas-cli v0.0.0, DO NOT EDIT.
gen/conditions/tests/hasone
Code generated by badaas-cli v0.0.0, DO NOT EDIT.
Code generated by badaas-cli v0.0.0, DO NOT EDIT.
gen/conditions/tests/multiplepackage/package1
Code generated by badaas-cli v0.0.0, DO NOT EDIT.
Code generated by badaas-cli v0.0.0, DO NOT EDIT.
gen/conditions/tests/overrideforeignkey
Code generated by badaas-cli v0.0.0, DO NOT EDIT.
Code generated by badaas-cli v0.0.0, DO NOT EDIT.
gen/conditions/tests/overrideforeignkeyinverse
Code generated by badaas-cli v0.0.0, DO NOT EDIT.
Code generated by badaas-cli v0.0.0, DO NOT EDIT.
gen/conditions/tests/overridereferences
Code generated by badaas-cli v0.0.0, DO NOT EDIT.
Code generated by badaas-cli v0.0.0, DO NOT EDIT.
gen/conditions/tests/overridereferencesinverse
Code generated by badaas-cli v0.0.0, DO NOT EDIT.
Code generated by badaas-cli v0.0.0, DO NOT EDIT.
gen/conditions/tests/results
Code generated by badaas-cli v0.0.0, DO NOT EDIT.
Code generated by badaas-cli v0.0.0, DO NOT EDIT.
gen/conditions/tests/selfreferential
Code generated by badaas-cli v0.0.0, DO NOT EDIT.
Code generated by badaas-cli v0.0.0, DO NOT EDIT.
log

Jump to

Keyboard shortcuts

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