Sha256: 063975c3f9b215889d8abbabcfcb828c08944a96a202b8c2506649b08bf17bec

Contents?: true

Size: 913 Bytes

Versions: 3

Compression:

Stored size: 913 Bytes

Contents

## Example

Format all source files.

    $ terraspace fmt
    Formating terraform files
    app/modules/example
    main.tf
    outputs.tf
    variables.tf
    app/stacks/demo
    main.tf

Format specific module or stack.

    $ terraspace fmt stack1
    $ terraspace fmt module1 -t module

Format scoping to module or stack types. In case there's a module and stack with the same name.

    $ terraspace fmt example -t module
    $ terraspace fmt demo -t stack

Format all, so both modules and stacks:

    $ terraspace fmt -t all

Check format of all source files, but don't fix. Examples:

    $ terraspace fmt demo -write=false -list
    $ terraspace fmt demo -check
    $ terraspace fmt -write=false -list

## Some Notes

The `terraspace fmt` will only format terraform source files that do not have any ERB templating logic in it. It will format the files directly in your source code. IE: app/stacks/demo

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
terraspace-2.2.17 lib/terraspace/cli/help/fmt.md
terraspace-2.2.16 lib/terraspace/cli/help/fmt.md
terraspace-2.2.15 lib/terraspace/cli/help/fmt.md