1Open(Policy)                                                      Open(Policy)
2
3
4

NAME

6       opa-fmt - Format Rego source files
7
8
9

SYNOPSIS

11       opa fmt [path [...]] [flags]
12
13
14

DESCRIPTION

16       Format Rego source files.
17
18
19       The  'fmt'  command  takes a Rego source file and outputs a reformatted
20       version. If no file path is provided - this tool will use  stdin.   The
21       format  of  the  output is not defined specifically; whatever this tool
22       outputs is considered correct format (with the exception of bugs).
23
24
25       If the '-w' option is supplied, the 'fmt' command  with  overwrite  the
26       source file instead of printing to stdout.
27
28
29       If  the  '-d'  option is supplied, the 'fmt' command will output a diff
30       between the original and formatted source.
31
32
33       If the '-l' option is supplied, the 'fmt' command will output the names
34       of  files that would change if formatted. The '-l' option will suppress
35       any other output to stdout from the 'fmt' command.
36
37
38

OPTIONS

40       -d, --diff[=false]      only display a diff of the changes
41
42
43       -h, --help[=false]      help for fmt
44
45
46       -l, --list[=false]      list all files who would change when formatted
47
48
49       -w, --write[=false]      overwrite the original source file
50
51
52

SEE ALSO

54       opa(1)
55
56
57
582020                              Agent(1)Oct                     Open(Policy)
Impressum