Skip to content

qba73/arc

Repository files navigation

Go Go Report Card GitHub GitHub go.mod Go version

arc

The arc CLI tool allows GIS and Data Analysts to extract data generated by a custom ESRI ArcGIS tool (Arc Tool) and save data in the CSV format. Next, GIS analysts import generated file to a spreadsheet.

The main requirements/assumptions are that input files are not larger than 10 MB; the analysts run the tool manually and manually import the CSV output file into spreadsheets.

Installation

Install latest version with go install command

$ go install github.com/qba73/arc/cmd/arc2csv@latest
$ go install github.com/qba73/arc/cmd/arc2json@latest

Install specific version (tag) with go install command

$ go install github.com/qba73/arc/cmd/arc2csv@v0.0.1
$ go install github.com/qba73/arc/cmd/arc2json@v0.0.1

Build locally

$ git clone git@github.com:qba73/arc.git
$ cd arc
$ make build

Usage

Getting help

arc2csv

$ arc2csv -h

arc2csv - ArcTool log processor for parsing log files to CSV format.

Flags:

-h	"Show help"
-v	"Show version"

Examples:

	// Generate csv file with data from the log file
	arc2csv < LoaderLogs_19-02-2020.log > report.csv

	// Generate csv file with data from multiple log files
	arc2csv < file1.log file2.log file3.log > report.csv

arc2json

$ arc2json -h

arc2json - ArcTool log processor for parsing log files to JSON format.

Flags:

-h	"Show help"
-v	"Show version"

Examples:

	// Generate csv file with data from the log file
	arc2json < LoaderLogs_19-02-2020.log > report.json

	// Generate csv file with data from multiple log files
	arc2json < file1.log file2.log file3.log > report.json