dc-template-linter

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

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

README

Domain Connect Template validation tool

This tool can be used to check if a template valid.

Building

go install github.com/Domain-Connect/dc-template-linter@latest

Running

git clone https://github.com/Domain-Connect/Templates.git &&
$GOPATH/bin/dc-template-linter ./Templates/*.json

When argument is not defined linter will read stdin.

curl -s https://raw.githubusercontent.com/Domain-Connect/Templates/master/acymailing.com.acymailer.json |
$GOPATH/bin/dc-template-linter -logos -loglevel debug

Usage

$GOPATH/bin/dc-template-linter --help
Usage: dc-template-linter [options] <template.json> [...]
  -cloudflare
	use Cloudflare specific template rules
  -increment
	increment template version, useful when pretty-printing
  -inplace
	inplace write back pretty-print
  -loglevel string
	loglevel can be one of: panic fatal error warn info debug trace (default "info")
  -logos
	check logo urls are reachable (requires network)
  -pretty
	pretty-print template json
  -tolerate string
	non-zero return loglevel treshold: any error warn info debug none (default "info")
  -version
	output version information and exit
Warning. -inplace and -pretty will remove zero priority MX and SRV fields

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package libdctlint provides a library to check/lint Domain Connect service provider template.
Package libdctlint provides a library to check/lint Domain Connect service provider template.

Jump to

Keyboard shortcuts

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