Skip to content

Commit

Permalink
Updated formatting of defaults.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Dec 23, 2021
1 parent 3d60605 commit 1949906
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ Auto generate documentation from actions.yml like [this](#inputs) by simply addi

<!-- AUTO-DOC-INPUT:START - Do not remove or modify this section -->

| INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
|---------------|--------|----------|------------|-----------------------------|
| action | string | false | action.yml | Path to the action.yml file |
| col_max_width | string | false | 1000 | Max width of a column |
| output | string | false | README.md | Path to the output file |
| INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
|---------------|--------|----------|--------------|-----------------------------|
| action | string | false | `action.yml` | Path to the action.yml file |
| col_max_width | string | false | `1000` | Max width of a column |
| output | string | false | `README.md` | Path to the output file |

<!-- AUTO-DOC-INPUT:END -->

Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (a *Action) renderOutput() error {
inputTable.SetColWidth(maxWidth)

for _, key := range keys {
row := []string{key, "string", strconv.FormatBool(a.Inputs[key].Required), a.Inputs[key].Default, a.Inputs[key].Description}
row := []string{key, "string", strconv.FormatBool(a.Inputs[key].Required), fmt.Sprintf("`%s`", a.Inputs[key].Default), a.Inputs[key].Description}
inputTable.Append(row)
}

Expand Down

0 comments on commit 1949906

Please sign in to comment.