lumen-cli

command module
v0.0.0-...-56394c6 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: MIT Imports: 3 Imported by: 0

README

Lumen CLI

Go Report Card Go Report Card latest release

Lumen is a CLI that allows you tou generate API with lumen-api framework, generating models, controllers, router and store.

Prerequisites

Define export PATH=$PATH:$GOPATH/bin

Installing

go get -u github.com/go-lumen/lumen

cd $GOPATH/src/github.com/go-lumen/lumen

go install

Usage

  • To generate the project directory, just run lumen new with your namespace, for example lumen new github.com/user/project
  • Generate a first model with lumen model

Auto mode

  • Select entities for each selected model and generate controller, store and router with lumen generate

Manual mode

  • Then, generate the corresponding controller with lumen controller
  • Then, generate the corresponding store with lumen store
  • Finally, generate the router with lumen router

Built With

  • cobra - A Commander for modern Go CLI interactions.
  • ishell - Library for creating interactive cli applications.
  • lumen-api - The boilerplate for GoLang api development

License

This project is licensed under the MIT License - see the LICENSE.md file for details

  • Adrien Chapelet - Initial work - IoThings

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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