Skip to content

ashishb/brux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brux

Lint Markdown Lint YAML Lint GitHub Actions

Lint Go Validate Go code formatting

Brux is a CLI tool written in Go for executing Bruno's Bru files.

Features

  • Parse .bru file
  • Run .bru file
  • Support enviroments
  • Support .env variables
  • Support saving output
  • Pretty print JSON
  • Add ability to run against multiple environments and compare the results

Install

$ go install github.com/ashishb/brux/src/brux/cmd/brux@latest
...

Or run it directly

$ go run github.com/ashishb/brux/src/brux/cmd/brux@latest --help
Usage:
  brux [flags]
  brux [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  run         Run a Bru file

Flags:
  -h, --help   help for brux

Usage

Consider a sample example.bru file

meta {
  name: Send request to example.com
  type: http
  seq: 1
}

get {
  url: http://example.com/
  body: json
  auth: none
}

headers {
  Content-Type: application/json
}

You can run it as

$ go run github.com/ashishb/brux/src/brux/cmd/brux@latest run example.bru
...

About

Bruno CLI parser written in Go language

Resources

License

Stars

Watchers

Forks

Packages

No packages published