abra

command module
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: MIT Imports: 1 Imported by: 0

README

Abra

Build Status FOSSA Status GoDoc Status Maintainability Test Coverage

A Go wrapper for the Australian Business Register

Australian Business Register Applicance

Usage

  1. Register for a GUID
  2. Set the ABR_GUID environment variable to the GUID issued to you.

Search by the name fields of the ABN entries.

abra search -s "Bob's Country Bunker" --GUID 123-456-789
Find by ABN

When you have an ABN you can get further information. For example:

abra find-abn -s 33102417032 --GUID 123-456-789
Find by ACN
abra find-acn -s 102417032 --GUID 123-456-789
Options
Output Types

There are three output types available:

  • text
  • json
  • xml

Set via the -f or --output-format flag. Example:

abra search -s "Bob's Country Bunker" -f json --GUID 123-456-789
Custom Text Output Template

Use go's text/template formatted template to customise the output as required.

Set via the -t or --text-output-template flag. Example:

abra search -s "Bob's Country Bunker" -f "text" \
  -t "./tmp/my-custom-template.gtpl" --GUID 123-456-789

With sample template:

Name: {{.Name}}
Link: https://abr.business.gov.au/ABN/View?abn={{.ABN.IdentifierValue}}

Testing

  1. Run:
    go test ./...
    

Documenation

License

FOSSA Status

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package abra provides a Go wrapper for the Australian Business Register
Package abra provides a Go wrapper for the Australian Business Register

Jump to

Keyboard shortcuts

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