echo-initializr

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

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

Go to latest
Published: Apr 18, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

echo-initializr

Echo Initializr is a tool created to help developers start projects created in the Echo Framework more quickly, without having to waste time with basic configurations.

Usage

Available Commands:
  • help - Help about any command

  • init - Create a basic project using echo framework from the scratch

    • -d, --dependencies stringArray

    Set the dependencies of your project. (default: empty)

    • -h, --help

    help for init

    • -n, --namespace [string]

    Set your project's name (default: github.com/example/sample)

    • -o, --outputDir [string]

    Set the output directory to your project. (default "$HOME/echo_initializr")

    • -p, --port [int]

    Set the port of your project webserver. (default 8080)

    • -v, --version [string]

    Set your project's version (default: installed)

To try, just run this command on the root of the echo-initializr's project
go run main.go init --namespace "github.com/example/sample" -d "github.com/gorilla/mux,github.com/google/uuid" -p 8080

Tips:

RUN

Inside the root of this project:

go build

A executable named "echo-initializr" will be generated.

Place this executable where you prefer, for example:

mv echo-initializr $HOME/go/bin

Now you can just set this in you PATH as variable to use directly in you terminal.

Open the .bash_profile

vim $HOME/.bash_profile

Write this lines: (Assuming that you have placed the executable file in the same folder as me)

export ECHOINITIALZR=$HOME/go/bin
export PATH=$PATH:$ECHOINITIALZR

Now you can run the command anywhere in you terminal:

echo-initializr help

Documentation

Overview

Copyright © 2020 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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