Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fluent-plugin-generate command #1427

Merged
merged 89 commits into from
Feb 16, 2017
Merged

Commits on Jan 30, 2017

  1. Add fluent-plugin-generate

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    da3664e View commit details
    Browse the repository at this point in the history
  2. Copy license first

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    11526c7 View commit details
    Browse the repository at this point in the history
  3. Display using license

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    52559a8 View commit details
    Browse the repository at this point in the history
  4. Be silent

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    27d2cd7 View commit details
    Browse the repository at this point in the history
  5. Add create_label and overwrite?

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    6b0abce View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2cc7f7c View commit details
    Browse the repository at this point in the history
  7. Fix a typo

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    8dcb7f9 View commit details
    Browse the repository at this point in the history
  8. Align

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    6d99ffd View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    44d4a1b View commit details
    Browse the repository at this point in the history
  10. Add missing spec.version

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    79a412c View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    2d5175f View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    62fadcd View commit details
    Browse the repository at this point in the history
  13. Support --no-license option

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    2e723a7 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    fc26431 View commit details
    Browse the repository at this point in the history
  15. Parse @argv properly

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    dd2581f View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    bbab5e4 View commit details
    Browse the repository at this point in the history
  17. Handle unknown license

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    031e171 View commit details
    Browse the repository at this point in the history
  18. Wait pid

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    d962784 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    3300253 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    02b2679 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    4dde4c7 View commit details
    Browse the repository at this point in the history
  22. Add fluent-plugin-config-format command

    ```
    fluent-plugin-config-format input tail
    ```
    
    This dumps markdown text about configurations to write documents.
    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    545d1aa View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    cba9edc View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    5bdec2d View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    41d1ea5 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    e4d29df View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    e5cb82d View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    39f717e View commit details
    Browse the repository at this point in the history
  29. Skip Fluent::Plugin::Base

    Because it does not have any configuration.
    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    8a01688 View commit details
    Browse the repository at this point in the history
  30. Fix section markup

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    30c4dd2 View commit details
    Browse the repository at this point in the history
  31. Remove unused --all option

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    6a7be2f View commit details
    Browse the repository at this point in the history
  32. Display root section

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    ad89aa4 View commit details
    Browse the repository at this point in the history
  33. Organize header level

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    444ca3f View commit details
    Browse the repository at this point in the history
  34. Display info about section

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    6d63b2d View commit details
    Browse the repository at this point in the history
  35. Support compact template

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    3f85071 View commit details
    Browse the repository at this point in the history
  36. Support JSON

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    42af799 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    7740b8c View commit details
    Browse the repository at this point in the history
  38. Use fluent-plugin-config-format instead of `fluentd --show-plugin-c…

    …onfig`
    
    `fluentd --show-plugin-config input:syslog` equals to
    `fluent-plugin-config-format --format=txt input syslog`.
    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    024e6a0 View commit details
    Browse the repository at this point in the history
  39. Fix a typo

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    b8a9493 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    d8a4f16 View commit details
    Browse the repository at this point in the history
  41. Set description properly

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    a92142b View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    d588635 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    a5d4b22 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    cfeab97 View commit details
    Browse the repository at this point in the history
  45. Fix method definitions

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    aaeabdc View commit details
    Browse the repository at this point in the history
  46. Fix typos

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    99672a4 View commit details
    Browse the repository at this point in the history
  47. Set required properly

    `config_param` does not handle `required:` keyword.
    But a parameter is required if `default:` keyword is specified.
    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    4c1ccfb View commit details
    Browse the repository at this point in the history
  48. Remove debug print

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    f358972 View commit details
    Browse the repository at this point in the history
  49. Rename Fluent::ConfigureProxy#dump to Fluent::ConfigureProxy#dump_con…

    …fig_definition
    
    Because `dump` is very general name.
    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    8947e06 View commit details
    Browse the repository at this point in the history
  50. Follow previous commit

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    e3fede2 View commit details
    Browse the repository at this point in the history
  51. Stop using Fluent::Engine in FluentPluginConfigFormatter

    Because `Fluent::Engine.add_plugin_dir` just calls `Fluent::Plugin.add_plugin_dir`
    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    32297b1 View commit details
    Browse the repository at this point in the history
  52. Stop displaying plugin helpers if plugin helpers are empty

    `Fluent::Plugin::Base.plugin_helpers` always returns an array.
    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    b1a6f14 View commit details
    Browse the repository at this point in the history
  53. Use static method invocation instead of dynamic method invocation

    Because dynamic method invocation is difficult.
    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    dc5eb66 View commit details
    Browse the repository at this point in the history
  54. Validate specified format

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    64fe217 View commit details
    Browse the repository at this point in the history
  55. Add Fluent::PluginHelper#helpers_internal

    `Fluent::PluginHelper#helpers` stores plugin helper names in concrete
    plugins and call `#helpers_internal`. `#helpers_internal` bypasses
    storing plugin helper names.
    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    83b1df3 View commit details
    Browse the repository at this point in the history
  56. Configuration menu
    Copy the full SHA
    8dec555 View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    e549700 View commit details
    Browse the repository at this point in the history
  58. Symplify

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    540054c View commit details
    Browse the repository at this point in the history
  59. Remove redundant code

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    459f2c6 View commit details
    Browse the repository at this point in the history
  60. Move templates

    lib/fluent/command/templates ->
    templates
    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    b138781 View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    88a2dbd View commit details
    Browse the repository at this point in the history
  62. Remove license related files

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    e04784c View commit details
    Browse the repository at this point in the history
  63. Add usage method

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    371d898 View commit details
    Browse the repository at this point in the history
  64. Download license from web site

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    79f146a View commit details
    Browse the repository at this point in the history
  65. Configuration menu
    Copy the full SHA
    08eb596 View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    c76e088 View commit details
    Browse the repository at this point in the history
  67. Support no license properly

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    5e224b1 View commit details
    Browse the repository at this point in the history
  68. Use preamble in license object

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    834abae View commit details
    Browse the repository at this point in the history
  69. Add installation section

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    2ffd60b View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    e87628a View commit details
    Browse the repository at this point in the history
  71. Configuration menu
    Copy the full SHA
    d1a54d4 View commit details
    Browse the repository at this point in the history
  72. Configuration menu
    Copy the full SHA
    33c6f0a View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    caaf557 View commit details
    Browse the repository at this point in the history
  74. Use test "name" do ... style

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    56d67df View commit details
    Browse the repository at this point in the history
  75. Extend Test::Unit::TestCase to use config_element

    In this version we can do following:
    
    ```ruby
    class TestFoo < Test::Unit::TestCase
      CONF = config_element("ROOT", "", { "key" => "value" })
    end
    ```
    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    a5fe470 View commit details
    Browse the repository at this point in the history
  76. Configuration menu
    Copy the full SHA
    75dd130 View commit details
    Browse the repository at this point in the history
  77. Configuration menu
    Copy the full SHA
    43af372 View commit details
    Browse the repository at this point in the history
  78. Fix typos

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    3e7ec76 View commit details
    Browse the repository at this point in the history
  79. Stop displaying plugin helpers when owned plugins

    Because owned plugins does not includes Fluetn::PluginHelper::Mixin.
    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    ea79554 View commit details
    Browse the repository at this point in the history
  80. Dump nested section properly

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    2b60e8d View commit details
    Browse the repository at this point in the history
  81. Simplify markdown output

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    0bf8c2c View commit details
    Browse the repository at this point in the history
  82. Configuration menu
    Copy the full SHA
    2dac957 View commit details
    Browse the repository at this point in the history
  83. Configuration menu
    Copy the full SHA
    0043507 View commit details
    Browse the repository at this point in the history
  84. Add trace log to suppress warnings

    But these variables used in templates/plugin_config_formatter/section.md.erb
    
    lib/fluent/command/plugin_config_formatter.rb:167: warning: assigned but unused variable - required
    lib/fluent/command/plugin_config_formatter.rb:168: warning: assigned but unused variable - multi
    lib/fluent/command/plugin_config_formatter.rb:169: warning: assigned but unused variable - alias_name
    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    78e987c View commit details
    Browse the repository at this point in the history
  85. Configuration menu
    Copy the full SHA
    261796c View commit details
    Browse the repository at this point in the history
  86. Configuration menu
    Copy the full SHA
    8e4b749 View commit details
    Browse the repository at this point in the history
  87. Configuration menu
    Copy the full SHA
    654a5a5 View commit details
    Browse the repository at this point in the history
  88. Assert timekey_zone dynamically

    okkez committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    67d73e0 View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2017

  1. Rescue SystemExit by assert_raise

    Because `exit(false)` raises SystemExit.
    okkez committed Feb 10, 2017
    Configuration menu
    Copy the full SHA
    ecf5fa5 View commit details
    Browse the repository at this point in the history