Skip to content

cmdgen

import "github.com/HexmosTech/lama2/cmdgen"

Package `cmdgen` provides an API to generate API request commands (by default based on HTTPie) based on the parsed API file contents and the `l2` command invocation parameters

Index

func ConstructCommand

func ConstructCommand(parsedInput *gabs.Container, o *lama2cmd.Opts) ([]string, string)

ConstructCommand extracts the HTTP verb, url and other API file inputs, figures out the type of target command and finally generates a string representing the generated command

Generated by gomarkdoc