Skip to content

Simplify template generation and handling#3683

Merged
andrewkroh merged 1 commit intoelastic:masterfrom
ruflin:simplify-template
Feb 28, 2017
Merged

Simplify template generation and handling#3683
andrewkroh merged 1 commit intoelastic:masterfrom
ruflin:simplify-template

Conversation

@ruflin
Copy link
Copy Markdown
Contributor

@ruflin ruflin commented Feb 27, 2017

  • Only one file is passed instead of an array as now only file is needed. Introduce -file param.
  • Local loading of beats version was removed as it can lean to cyclic imports
  • Move _meta/fields.full.generated.yml to fields.yml in preparation for packaging fields.yml and ignore it in git
  • Cleanup Template generation package
  • Rename -beat.name param to -index as this describes it better

Part of #3654

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

os.Stat could fail for reasons other than the file does not exists. You can test for that specific case with os.IsNotExist or maybe you could just include the error message from stat in the output.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will just include the error, because i think all errors should be covered.

* Only one file is passed instead of an array as now only file is needed. Introduce `-file` param.
* Local loading of beats version was removed as it can lean to cyclic imports
* Move `_meta/fields.full.generated.yml` to `fields.yml` in preparation for packaging `fields.yml` and ignore it in git
* Cleanup Template generation package
* Rename -beat.name param to -index as this describes it better

Part of elastic#3654
@andrewkroh andrewkroh merged commit 80c8cd0 into elastic:master Feb 28, 2017
@ruflin ruflin deleted the simplify-template branch February 28, 2017 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants