Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 1.98 KB

form.md

File metadata and controls

57 lines (44 loc) · 1.98 KB
title rootform validate form
description Check a saved Form's structure and internal consistency.

validate form reads a saved Form; - reads the Form's JSON from standard input. It checks structural validity and internal consistency, not Policy compliance or live cloud state.

Usage

rootform validate form <file> [options]

Options

Flag Type Default Description
--format string "" output format: text|json; default: text

Global options

Flag Type Default Description
-h, --help bool false show how to use rootform validate form
--color mode auto color human output: auto|always|never; default: auto
--no-pager bool false print a long report in full instead of opening it in less

From a checkout of the repository, save the reviewed commerce plan as a Form, then validate that the saved Form is structurally valid. Validation does not reanalyze the plan or evaluate Policies.

rootform run examples/playground/commerce-platform/head/plan.json \
  --plan-file examples/playground/commerce-platform/head/plan.tfplan \
  --no-serve -o analysis.json
rootform validate form analysis.json --color always
rootform validate form analysis.json --format json
�[1m�[32mForm valid�[0m

Text is the default result; JSON is also available. The result goes to standard output and diagnostics to standard error. Status 0 means the Form is valid; 1 means it is not valid; 2 means incorrect usage; 3 means the input was refused; 4 means the input could not be read or the report could not be written. Use check to evaluate Policies and Forms for what a Form contains.