Sha256: 81097d32fdde5557ae2c2ef707f62653e8127d34a7003e33dd27617fe8f6bead
Contents?: true
Size: 567 Bytes
Versions: 2
Compression:
Stored size: 567 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require 'article_fixture_gen' require 'article_fixture_gen/exe/config' require 'article_fixture_gen/exe/generate_config' require 'article_fixture_gen/exe/option_parser' parsed_options = ArticleFixtureGen::Exe::OptionParser.call.to_h config = ArticleFixtureGen::Exe::Config.load parsed_options ArticleFixtureGen::Exe::GenerateConfig.call(config) if config.generate_config_given articles = Array.new(config.article_count) do ArticleFixtureGen::Data::Article.new(config: config).to_s end puts articles.join("\n\n")
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
article_fixture_gen-0.1.2 | exe/article_fixture_gen |
article_fixture_gen-0.1.1 | exe/article_fixture_gen |