Skip to content

Commit

Permalink
feat(variable): Add 'GalaxyForce' booleant
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaerlocher committed Nov 9, 2023
1 parent 64c8b3a commit 6689e78
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"avatar_url": "https://avatars1.githubusercontent.com/u/4160387?v=4",
"profile": "https://sbaerlocher.ch",
"contributions": [
"code",
"code",
"ideas"
]
}
Expand Down
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Top-most EditorConfig file
root = true

# Default settings for all files
[*]
charset = utf-8 # Set the character encoding to UTF-8
end_of_line = lf # Use Line Feed for new lines
indent_size = 4 # Set the indent size to 4 spaces
indent_style = space # Use spaces for indentation
insert_final_newline = true # Ensure file ends with a newline
trim_trailing_whitespace = true # Remove any whitespace at the end of a line
[{Makefile,go.mod,go.sum,*.go,.gitmodules}]
indent_style = tab
indent_size = 4

[*.md]
indent_size = 4
trim_trailing_whitespace = false

eclint_indent_style = unset
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ func main() {
Usage: "path to galaxy requirements",
EnvVars: []string{"ANSIBLE_GALAXY_FILE", "INPUT_GALAXY_FILE", "PLUGIN_GALAXY_FILE"},
},
&cli.StringFlag{
Name: "galaxy-force",
Usage: "galaxy force",
EnvVars: []string{"ANSIBLE_GALAXY_FORCE", "INPUT_GALAXY_FORCE", "PLUGIN_GALAXY_FORCE"},
},
&cli.StringSliceFlag{
Name: "inventory,i",
Usage: "specify inventory host path",
Expand Down Expand Up @@ -206,6 +211,7 @@ func run(c *cli.Context) error {
playbook := &ansible.AnsiblePlaybook{
Config: ansible.Config{
GalaxyFile: c.String("galaxy-file"),
GalaxyForce c.Bool("galaxy-force"),

Check failure on line 214 in main.go

View workflow job for this annotation

GitHub Actions / test_go

syntax error: unexpected c, expecting comma or }

Check failure on line 214 in main.go

View workflow job for this annotation

GitHub Actions / test_go

syntax error: unexpected c, expecting comma or }
Inventories: c.StringSlice("inventory"),
Playbooks: c.StringSlice("playbook"),
Limit: c.String("limit"),
Expand Down

0 comments on commit 6689e78

Please sign in to comment.