eac_tools 0.123.1 → 0.124.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +29 -39
- data/eac_tools.gemspec +2 -2
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm-eac_redmine_base0/.gitrepo +7 -0
- data/sub/avm-eac_redmine_base0/.rubocop.yml +2 -0
- data/sub/{avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec → avm-eac_redmine_base0/avm-eac_redmine_base0.gemspec} +9 -7
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/apache_host.rb +10 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/database.rb +27 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/files.rb +18 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/gitolite.rb +52 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/install.rb +43 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/nodejs.rb +21 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/web.rb +17 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base.rb +63 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/deploy.rb +16 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/docker_image.rb +110 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api/entity_base.rb +27 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api/project.rb +30 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api/root.rb +17 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api/wiki_page.rb +67 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/rest_api.rb +16 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/docker.rb +15 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project/wiki_page/read.rb +25 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project/wiki_page/write.rb +68 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project/wiki_page.rb +26 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project.rb +22 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners/project_rename.rb +53 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/base/default_settings.rb +45 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/base/update.rb +16 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/base.rb +34 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/core_update.rb +125 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/runners/core_update.rb +61 -0
- data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/sources/runners/docker.rb +16 -0
- data/sub/{avm-git/lib/avm/git → avm-eac_redmine_base0/lib/avm/eac_redmine_base0}/version.rb +2 -2
- data/sub/{avm-eac_ruby_base1/lib/avm/eac_ruby_base1.rb → avm-eac_redmine_base0/lib/avm/eac_redmine_base0.rb} +4 -3
- data/sub/avm-eac_redmine_base0/locale/en.yml +6 -0
- data/sub/avm-eac_redmine_base0/locale/pt-BR.yml +6 -0
- data/sub/avm-eac_redmine_base0/spec/lib/avm/eac_redmine_base0/instances/apache_host_spec.rb +19 -0
- data/sub/avm-eac_redmine_base0/spec/lib/avm/eac_redmine_base0/instances/apache_host_spec_files/apache_host_spec_no_ssl_content.conf +11 -0
- data/sub/avm-eac_redmine_base0/spec/lib/avm/eac_redmine_base0/instances/base/gitolite_spec.rb +24 -0
- data/sub/avm-eac_redmine_base0/spec/lib/avm/eac_redmine_base0/instances/base/gitolite_spec_files/config.yml +10 -0
- data/sub/{avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem → avm-eac_redmine_base0}/spec/spec_helper.rb +2 -1
- data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/deploy/config/install.sh.template +46 -0
- data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/deploy/config/secrets.yml +8 -0
- data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template +37 -0
- data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/apache_host_dockerfile +8 -0
- data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/apache_http_virtualhost.conf.template +10 -0
- data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/apache_https_virtualhost.conf.template +16 -0
- data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/apache_path_dockerfile +5 -0
- data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/start.sh.template +53 -0
- metadata +55 -559
- data/sub/avm-eac_ruby_base1/.gitignore +0 -2
- data/sub/avm-eac_ruby_base1/.gitrepo +0 -7
- data/sub/avm-eac_ruby_base1/.rubocop.yml +0 -3
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile/add_or_replace_gem_line.rb +0 -54
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile/dependency.rb +0 -17
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile.rb +0 -32
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/depends_on.rb +0 -22
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb +0 -41
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/in_gemfile.rb +0 -14
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_buffer.rb +0 -73
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_factory.rb +0 -26
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_parser_base.rb +0 -17
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/ruby_requirement.rb +0 -13
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/version_requirement.rb +0 -23
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser.rb +0 -21
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats/base/file_resource_name.rb +0 -44
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats/base.rb +0 -20
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/instances/mixin.rb +0 -24
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem/build.rb +0 -120
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem/specification.rb +0 -61
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base/local_project_mixin.rb +0 -24
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish/internal_check.rb +0 -71
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish/local_gem.rb +0 -31
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish/remote_gem.rb +0 -45
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish.rb +0 -33
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base.rb +0 -32
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/preferred_version_requirements.rb +0 -40
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rspec/setup.rb +0 -13
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rspec/source_generator.rb +0 -20
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/command/build.rb +0 -41
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/command.rb +0 -80
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/offense_set/file.rb +0 -51
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/offense_set/line_processor.rb +0 -54
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/offense_set/offense.rb +0 -34
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/offense_set.rb +0 -28
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/runner/configured.rb +0 -31
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/runner/envvar.rb +0 -17
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/runner/gemfile.rb +0 -41
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/runner.rb +0 -56
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gem_search_parser.rb +0 -34
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec/add_or_replace_gem_line.rb +0 -69
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec/dependency.rb +0 -28
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec.rb +0 -57
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/providers/base/command_result_to_push_result.rb +0 -39
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/providers/base.rb +0 -59
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/providers/nexus.rb +0 -29
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/providers/rubygems_org.rb +0 -42
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/remote.rb +0 -31
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/version_file.rb +0 -43
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base/lib_rename.rb +0 -74
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base/rubocop.rb +0 -27
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base.rb +0 -14
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners.rb +0 -8
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/dependencies.rb +0 -59
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/gemfile_lock.rb +0 -23
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/gemspec.rb +0 -81
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/options.rb +0 -32
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/root_module.rb +0 -46
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/version_builder.rb +0 -58
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base.rb +0 -48
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb +0 -35
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundler.rb +0 -62
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/gem_provider.rb +0 -46
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rake.rb +0 -39
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubocop.rb +0 -34
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubocop_command.rb +0 -51
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubygems.rb +0 -50
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/update.rb +0 -31
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version.rb +0 -30
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version_bump.rb +0 -16
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base.rb +0 -55
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/bundle_update.rb +0 -21
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/gemfile_local/sibling.rb +0 -51
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/gemfile_local.rb +0 -65
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/namespace_replacer.rb +0 -66
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundle.rb +0 -26
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_local.rb +0 -55
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_lock/git.rb +0 -58
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_lock.rb +0 -88
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/incompatible.rb +0 -73
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler.rb +0 -16
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/base.rb +0 -57
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/minitest.rb +0 -27
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/decorated_gem.rb +0 -50
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb +0 -29
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple.rb +0 -85
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/rspec.rb +0 -23
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update/changes/dependencies_requirements.rb +0 -57
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update/changes/gemfile_lock.rb +0 -28
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update/changes/rubocop_format.rb +0 -31
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update/sub_update.rb +0 -57
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +0 -7
- data/sub/avm-eac_ruby_base1/locale/en.yml +0 -21
- data/sub/avm-eac_ruby_base1/locale/pt-BR.yml +0 -21
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec.rb +0 -5
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/1.source.out +0 -192
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/1.target.yaml +0 -300
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/2.source.out +0 -245
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/2.target.yaml +0 -355
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/3.source.out +0 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/3.target.yaml +0 -305
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec.rb +0 -13
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/Gemfile.source +0 -6
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/Gemfile.target +0 -3
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/ruby_code.rb.source +0 -6
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/ruby_code.rb.target +0 -5
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher/gem/build_spec.rb +0 -43
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher/gem/specification_spec.rb +0 -57
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish_spec.rb +0 -25
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base_spec.rb +0 -21
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/preferred_version_requirements_spec.rb +0 -21
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/gem_search_parser_spec.rb +0 -5
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/gem_search_parser_spec_files/empty.source +0 -1
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/gem_search_parser_spec_files/empty.target.yaml +0 -1
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/gem_search_parser_spec_files/many_versions.source +0 -1
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/gem_search_parser_spec_files/many_versions.target.yaml +0 -123
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/gemspec_spec.rb +0 -35
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/gemspec_spec_files/changes1.source.yaml +0 -5
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/gemspec_spec_files/changes1.target.txt +0 -15
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/gemspec_spec_files/the_gem.gemspec +0 -15
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/version_file_spec.rb +0 -13
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/version_file_spec_files/a_version_file.rb +0 -7
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec.rb +0 -33
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir1/.avm.yml +0 -4
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir1/dir3/Gemfile +0 -7
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir1/dir3/Gemfile.lock +0 -31
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir2/empty.rb +0 -1
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir4/.avm.yml +0 -4
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir4/false_command.rb +0 -4
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec.rb +0 -16
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/.rspec +0 -1
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/.rubocop.yml +0 -3
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/Gemfile +0 -8
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/Gemfile.lock +0 -1
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/_gitignore +0 -2
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/dashed-mygem.gemspec +0 -20
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/lib/dashed/mygem/version.rb +0 -7
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/lib/dashed/mygem.rb +0 -4
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/.rspec +0 -1
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/.rubocop.yml +0 -3
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/Gemfile +0 -8
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/Gemfile.lock +0 -1
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/_gitignore +0 -2
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/lib/mygem/version.rb +0 -5
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/lib/mygem.rb +0 -4
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/mygem.gemspec +0 -20
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/spec/spec_helper.rb +0 -5
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec.rb +0 -28
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Gemfile +0 -5
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Gemfile.lock +0 -19
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Rakefile +0 -14
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/exe/myrunner +0 -5
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/lib/mygem/version.rb +0 -5
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/lib/mygem.rb +0 -7
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/mygem.gemspec +0 -17
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base_spec.rb +0 -13
- data/sub/avm-eac_ruby_base1/spec/spec_helper.rb +0 -5
- data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/gemspec.template +0 -19
- data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/root_lib.template +0 -4
- data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/.gitignore +0 -2
- data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/.rspec +0 -1
- data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/.rubocop.yml +0 -3
- data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/Gemfile +0 -8
- data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/spec/spec_helper.rb.template +0 -5
- data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/version.template +0 -5
- data/sub/avm-git/.gitrepo +0 -7
- data/sub/avm-git/.rspec +0 -1
- data/sub/avm-git/.rubocop.yml +0 -6
- data/sub/avm-git/Gemfile +0 -8
- data/sub/avm-git/avm-git.gemspec +0 -25
- data/sub/avm-git/lib/avm/git/application_scms/base/assert_main_at.rb +0 -44
- data/sub/avm-git/lib/avm/git/application_scms/base.rb +0 -18
- data/sub/avm-git/lib/avm/git/commit/class_methods.rb +0 -29
- data/sub/avm-git/lib/avm/git/commit/diff_tree_line.rb +0 -32
- data/sub/avm-git/lib/avm/git/commit/file.rb +0 -42
- data/sub/avm-git/lib/avm/git/commit.rb +0 -57
- data/sub/avm-git/lib/avm/git/issue/complete/commits.rb +0 -40
- data/sub/avm-git/lib/avm/git/issue/complete/git_subrepos.rb +0 -20
- data/sub/avm-git/lib/avm/git/issue/complete/local_branch.rb +0 -59
- data/sub/avm-git/lib/avm/git/issue/complete/local_tag.rb +0 -37
- data/sub/avm-git/lib/avm/git/issue/complete/push.rb +0 -60
- data/sub/avm-git/lib/avm/git/issue/complete/remote.rb +0 -33
- data/sub/avm-git/lib/avm/git/issue/complete/test.rb +0 -34
- data/sub/avm-git/lib/avm/git/issue/complete/tracker.rb +0 -21
- data/sub/avm-git/lib/avm/git/issue/complete/validation.rb +0 -36
- data/sub/avm-git/lib/avm/git/issue/complete/validations.rb +0 -54
- data/sub/avm-git/lib/avm/git/issue/complete/working_tree.rb +0 -19
- data/sub/avm-git/lib/avm/git/issue/complete.rb +0 -66
- data/sub/avm-git/lib/avm/git/launcher/base/class_methods.rb +0 -28
- data/sub/avm-git/lib/avm/git/launcher/base/dirty_files.rb +0 -21
- data/sub/avm-git/lib/avm/git/launcher/base/remotes.rb +0 -37
- data/sub/avm-git/lib/avm/git/launcher/base/subrepo.rb +0 -42
- data/sub/avm-git/lib/avm/git/launcher/base/underlying.rb +0 -54
- data/sub/avm-git/lib/avm/git/launcher/base.rb +0 -80
- data/sub/avm-git/lib/avm/git/launcher/error.rb +0 -13
- data/sub/avm-git/lib/avm/git/launcher/mirror_update.rb +0 -36
- data/sub/avm-git/lib/avm/git/launcher/publish_base.rb +0 -128
- data/sub/avm-git/lib/avm/git/launcher/remote.rb +0 -53
- data/sub/avm-git/lib/avm/git/launcher/sub_warp_base.rb +0 -36
- data/sub/avm-git/lib/avm/git/launcher/warp_base.rb +0 -63
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git/local_project_mixin.rb +0 -16
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git/publish.rb +0 -13
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git/warp.rb +0 -25
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git.rb +0 -21
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb +0 -29
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo/warp.rb +0 -82
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/git_subrepo.rb +0 -31
- data/sub/avm-git/lib/avm/git/launcher_stereotypes/provider.rb +0 -16
- data/sub/avm-git/lib/avm/git/organize/reference_update.rb +0 -32
- data/sub/avm-git/lib/avm/git/organize/repository.rb +0 -74
- data/sub/avm-git/lib/avm/git/revision_test.rb +0 -102
- data/sub/avm-git/lib/avm/git/runners/base/commit.rb +0 -98
- data/sub/avm-git/lib/avm/git/runners/base/deploy.rb +0 -108
- data/sub/avm-git/lib/avm/git/runners/base/dirty_files.rb +0 -42
- data/sub/avm-git/lib/avm/git/runners/base/organize.rb +0 -72
- data/sub/avm-git/lib/avm/git/runners/base/revisions_test.rb +0 -63
- data/sub/avm-git/lib/avm/git/runners/base/subrepo/check.rb +0 -45
- data/sub/avm-git/lib/avm/git/runners/base/subrepo/clone.rb +0 -80
- data/sub/avm-git/lib/avm/git/runners/base/subrepo/fix.rb +0 -69
- data/sub/avm-git/lib/avm/git/runners/base/subrepo.rb +0 -16
- data/sub/avm-git/lib/avm/git/runners/base.rb +0 -39
- data/sub/avm-git/lib/avm/git/scms/git/branch.rb +0 -28
- data/sub/avm-git/lib/avm/git/scms/git/branches.rb +0 -17
- data/sub/avm-git/lib/avm/git/scms/git/change_tracker.rb +0 -34
- data/sub/avm-git/lib/avm/git/scms/git/changed_file.rb +0 -25
- data/sub/avm-git/lib/avm/git/scms/git/changed_files.rb +0 -21
- data/sub/avm-git/lib/avm/git/scms/git/commit/deploy.rb +0 -38
- data/sub/avm-git/lib/avm/git/scms/git/commit/deploy_methods.rb +0 -24
- data/sub/avm-git/lib/avm/git/scms/git/commit.rb +0 -64
- data/sub/avm-git/lib/avm/git/scms/git/commit_dirty.rb +0 -32
- data/sub/avm-git/lib/avm/git/scms/git/commits.rb +0 -44
- data/sub/avm-git/lib/avm/git/scms/git/interval.rb +0 -28
- data/sub/avm-git/lib/avm/git/scms/git/milestones.rb +0 -18
- data/sub/avm-git/lib/avm/git/scms/git/remote.rb +0 -18
- data/sub/avm-git/lib/avm/git/scms/git/remotes.rb +0 -29
- data/sub/avm-git/lib/avm/git/scms/git/run_commit.rb +0 -54
- data/sub/avm-git/lib/avm/git/scms/git.rb +0 -46
- data/sub/avm-git/lib/avm/git/scms/git_sub_base/changed_file.rb +0 -19
- data/sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb +0 -23
- data/sub/avm-git/lib/avm/git/scms/git_sub_base/interval.rb +0 -23
- data/sub/avm-git/lib/avm/git/scms/git_sub_base.rb +0 -28
- data/sub/avm-git/lib/avm/git/scms/git_subrepo.rb +0 -28
- data/sub/avm-git/lib/avm/git/scms/git_subtree.rb +0 -29
- data/sub/avm-git/lib/avm/git/scms/provider.rb +0 -16
- data/sub/avm-git/lib/avm/git/subrepo_check/parent.rb +0 -48
- data/sub/avm-git/lib/avm/git/subrepo_check/remote.rb +0 -86
- data/sub/avm-git/lib/avm/git/subrepo_check/show_result.rb +0 -30
- data/sub/avm-git/lib/avm/git/subrepo_check.rb +0 -36
- data/sub/avm-git/lib/avm/git/subrepo_checks.rb +0 -57
- data/sub/avm-git/lib/avm/git/vendor/github.rb +0 -20
- data/sub/avm-git/lib/avm/git.rb +0 -15
- data/sub/avm-git/locale/en.yml +0 -6
- data/sub/avm-git/locale/pt-BR.yml +0 -6
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec.rb +0 -11
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.source.out +0 -1
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.target.yaml +0 -7
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/modify.source.out +0 -1
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/modify.target.yaml +0 -7
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/remove.source.out +0 -1
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/remove.target.yaml +0 -7
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename.source.out +0 -2
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename.target.yaml +0 -13
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename_modify.source.out +0 -2
- data/sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/rename_modify.target.yaml +0 -13
- data/sub/avm-git/spec/lib/avm/git/commit_spec.rb +0 -54
- data/sub/avm-git/spec/lib/avm/git/launcher/base_spec.rb +0 -43
- data/sub/avm-git/spec/lib/avm/git/launcher_stereotypes/git_subrepo/publish_spec.rb +0 -82
- data/sub/avm-git/spec/lib/avm/git/launcher_stereotypes/git_subrepo/publish_spec_files/config.yml +0 -5
- data/sub/avm-git/spec/lib/avm/git/launcher_stereotypes/git_subrepo/publish_spec_settings.yml +0 -6
- data/sub/avm-git/spec/lib/avm/git/launcher_stereotypes/git_subrepo/warp_spec.rb +0 -53
- data/sub/avm-git/spec/lib/avm/git/launcher_stereotypes/git_subrepo/warp_spec_files/config.yml +0 -3
- data/sub/avm-git/spec/lib/avm/git/launcher_stereotypes/git_subrepo/warp_spec_settings.yml +0 -6
- data/sub/avm-git/spec/lib/avm/git/runners/base/deploy_spec.rb +0 -124
- data/sub/avm-git/spec/lib/avm/git/runners/base/deploy_spec_files/append1/stub3.txt.template +0 -1
- data/sub/avm-git/spec/lib/avm/git/runners/base/deploy_spec_files/append2/stub4.txt +0 -1
- data/sub/avm-git/spec/lib/avm/git/scms/git/commit/deploy_spec.rb +0 -89
- data/sub/avm-git/spec/lib/avm/git/scms/git_spec.rb +0 -5
- data/sub/avm-git/spec/lib/avm/git/scms/git_subrepo_spec.rb +0 -5
- data/sub/avm-git/spec/lib/avm/git/vendor/github_spec.rb +0 -21
- data/sub/avm-git/spec/meta/rubocop_spec.rb +0 -3
- data/sub/avm-git/spec/spec_helper.rb +0 -5
- data/sub/eac_git/.gitignore +0 -2
- data/sub/eac_git/.gitrepo +0 -7
- data/sub/eac_git/.rspec +0 -1
- data/sub/eac_git/.rubocop.yml +0 -3
- data/sub/eac_git/Gemfile +0 -8
- data/sub/eac_git/eac_git.gemspec +0 -21
- data/sub/eac_git/lib/eac_git/executables.rb +0 -45
- data/sub/eac_git/lib/eac_git/local/branch.rb +0 -45
- data/sub/eac_git/lib/eac_git/local/changed_file.rb +0 -53
- data/sub/eac_git/lib/eac_git/local/commit/archive.rb +0 -17
- data/sub/eac_git/lib/eac_git/local/commit/changed_file.rb +0 -43
- data/sub/eac_git/lib/eac_git/local/commit/diff_tree_line.rb +0 -32
- data/sub/eac_git/lib/eac_git/local/commit.rb +0 -71
- data/sub/eac_git/lib/eac_git/local/dirty_files.rb +0 -26
- data/sub/eac_git/lib/eac_git/local/log.rb +0 -14
- data/sub/eac_git/lib/eac_git/local/remote/push.rb +0 -33
- data/sub/eac_git/lib/eac_git/local/remote.rb +0 -71
- data/sub/eac_git/lib/eac_git/local/remotes.rb +0 -17
- data/sub/eac_git/lib/eac_git/local/subrepo.rb +0 -46
- data/sub/eac_git/lib/eac_git/local.rb +0 -124
- data/sub/eac_git/lib/eac_git/remote.rb +0 -20
- data/sub/eac_git/lib/eac_git/remote_like/ls_result.rb +0 -19
- data/sub/eac_git/lib/eac_git/remote_like.rb +0 -29
- data/sub/eac_git/lib/eac_git/rspec/setup.rb +0 -20
- data/sub/eac_git/lib/eac_git/rspec/stubbed_git_local_repo/directory.rb +0 -35
- data/sub/eac_git/lib/eac_git/rspec/stubbed_git_local_repo/file.rb +0 -21
- data/sub/eac_git/lib/eac_git/rspec/stubbed_git_local_repo/fs_object.rb +0 -25
- data/sub/eac_git/lib/eac_git/rspec/stubbed_git_local_repo/repository.rb +0 -30
- data/sub/eac_git/lib/eac_git/rspec/stubbed_git_local_repo.rb +0 -26
- data/sub/eac_git/lib/eac_git/rspec.rb +0 -6
- data/sub/eac_git/lib/eac_git/subrepo/configuration.rb +0 -40
- data/sub/eac_git/lib/eac_git/version.rb +0 -5
- data/sub/eac_git/lib/eac_git.rb +0 -7
- data/sub/eac_git/spec/lib/eac_git/executables_spec.rb +0 -11
- data/sub/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec.rb +0 -11
- data/sub/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/add.source.out +0 -1
- data/sub/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/add.target.yaml +0 -7
- data/sub/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/modify.source.out +0 -1
- data/sub/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/modify.target.yaml +0 -7
- data/sub/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/remove.source.out +0 -1
- data/sub/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/remove.target.yaml +0 -7
- data/sub/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/rename.source.out +0 -2
- data/sub/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/rename.target.yaml +0 -13
- data/sub/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/rename_modify.source.out +0 -2
- data/sub/eac_git/spec/lib/eac_git/local/commit/diff_tree_line_spec_files/rename_modify.target.yaml +0 -13
- data/sub/eac_git/spec/lib/eac_git/local/commit_spec.rb +0 -56
- data/sub/eac_git/spec/lib/eac_git/local/dirty_files_spec.rb +0 -18
- data/sub/eac_git/spec/rubocop_spec.rb +0 -3
- data/sub/eac_git/spec/spec_helper.rb +0 -5
- data/sub/eac_git/vendor/git-subrepo/.fish.rc +0 -20
- data/sub/eac_git/vendor/git-subrepo/.gitattributes +0 -1
- data/sub/eac_git/vendor/git-subrepo/.github/workflows/test.yml +0 -29
- data/sub/eac_git/vendor/git-subrepo/.gitignore +0 -1
- data/sub/eac_git/vendor/git-subrepo/.gitrepo +0 -7
- data/sub/eac_git/vendor/git-subrepo/.rc +0 -32
- data/sub/eac_git/vendor/git-subrepo/Changes +0 -176
- data/sub/eac_git/vendor/git-subrepo/Intro.pod +0 -506
- data/sub/eac_git/vendor/git-subrepo/License +0 -21
- data/sub/eac_git/vendor/git-subrepo/Makefile +0 -122
- data/sub/eac_git/vendor/git-subrepo/Meta +0 -28
- data/sub/eac_git/vendor/git-subrepo/ReadMe.pod +0 -693
- data/sub/eac_git/vendor/git-subrepo/doc/comparison.swim +0 -35
- data/sub/eac_git/vendor/git-subrepo/doc/git-subrepo.swim +0 -612
- data/sub/eac_git/vendor/git-subrepo/doc/intro-to-subrepo.swim +0 -385
- data/sub/eac_git/vendor/git-subrepo/ext/bashplus/.gitrepo +0 -12
- data/sub/eac_git/vendor/git-subrepo/ext/bashplus/.travis.yml +0 -6
- data/sub/eac_git/vendor/git-subrepo/ext/bashplus/Changes +0 -34
- data/sub/eac_git/vendor/git-subrepo/ext/bashplus/License +0 -21
- data/sub/eac_git/vendor/git-subrepo/ext/bashplus/Makefile +0 -70
- data/sub/eac_git/vendor/git-subrepo/ext/bashplus/Meta +0 -28
- data/sub/eac_git/vendor/git-subrepo/ext/bashplus/ReadMe.pod +0 -77
- data/sub/eac_git/vendor/git-subrepo/ext/bashplus/bin/bash+ +0 -44
- data/sub/eac_git/vendor/git-subrepo/ext/bashplus/doc/bash+.swim +0 -61
- data/sub/eac_git/vendor/git-subrepo/ext/bashplus/lib/bash+.bash +0 -139
- data/sub/eac_git/vendor/git-subrepo/ext/bashplus/man/man1/bash+.1 +0 -134
- data/sub/eac_git/vendor/git-subrepo/ext/bashplus/man/man3/bash+.3 +0 -134
- data/sub/eac_git/vendor/git-subrepo/ext/bashplus/test/base.t +0 -11
- data/sub/eac_git/vendor/git-subrepo/ext/bashplus/test/die.t +0 -16
- data/sub/eac_git/vendor/git-subrepo/ext/bashplus/test/fcopy.t +0 -21
- data/sub/eac_git/vendor/git-subrepo/ext/bashplus/test/lib/foo/bar.bash +0 -3
- data/sub/eac_git/vendor/git-subrepo/ext/bashplus/test/lib/foo/foo.bash +0 -3
- data/sub/eac_git/vendor/git-subrepo/ext/bashplus/test/setup +0 -80
- data/sub/eac_git/vendor/git-subrepo/ext/bashplus/test/shellcheck.t +0 -37
- data/sub/eac_git/vendor/git-subrepo/ext/bashplus/test/source-bash+-std.t +0 -17
- data/sub/eac_git/vendor/git-subrepo/ext/bashplus/test/source-bash+.t +0 -22
- data/sub/eac_git/vendor/git-subrepo/ext/bashplus/test/use.t +0 -22
- data/sub/eac_git/vendor/git-subrepo/ext/bashplus/test/version-check.t +0 -23
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/.gitrepo +0 -12
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/.travis.yml +0 -6
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/Changes +0 -26
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/License +0 -21
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/Makefile +0 -45
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/Meta +0 -30
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ReadMe.pod +0 -121
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/doc/test-more.swim +0 -94
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/.gitrepo +0 -12
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/.travis.yml +0 -6
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/Changes +0 -26
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/License +0 -21
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/Makefile +0 -70
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/Meta +0 -28
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/ReadMe.pod +0 -77
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/bin/bash+ +0 -44
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/doc/bash+.swim +0 -61
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/lib/bash+.bash +0 -139
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/man/man1/bash+.1 +0 -134
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/man/man3/bash+.3 +0 -134
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/test/base.t +0 -12
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/test/die.t +0 -17
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/test/fcopy.t +0 -22
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/test/lib/foo/bar.bash +0 -3
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/test/lib/foo/foo.bash +0 -3
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/test/setup +0 -79
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/test/shellcheck.t +0 -38
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/test/source-bash+-std.t +0 -18
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/test/source-bash+.t +0 -23
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/test/use.t +0 -23
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/.gitrepo +0 -12
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/.travis.yml +0 -5
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/Changes +0 -26
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/License +0 -21
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/Makefile +0 -67
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/Meta +0 -28
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/ReadMe.pod +0 -66
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/doc/test-tap.swim +0 -48
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/lib/test/tap.bash +0 -157
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/man/man3/test-tap.3 +0 -119
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/test/bail_out.t +0 -13
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/test/done.t +0 -10
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/test/fail.t +0 -20
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/test/fail_fast.t +0 -15
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/test/helper.bash +0 -9
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/test/pass.t +0 -9
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/test/plan.t +0 -10
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/test/shellcheck.t +0 -42
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/test/skip_all.t +0 -20
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/test/tap.t +0 -19
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/test/test/bail.t +0 -14
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/test/test/fail.t +0 -7
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/test/test/fail_fast.t +0 -12
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/test/test/skip-all-init.t +0 -8
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/test-tap-bash/test/test/skip-all-plan.t +0 -9
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/lib/test/more.bash +0 -115
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/man/man3/test-more.3 +0 -179
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/test/fail.t +0 -34
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/test/more.t +0 -28
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/test/pass.t +0 -9
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/test/setup +0 -8
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/test/shellcheck.t +0 -35
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/test/skip_all.t +0 -11
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/test/test/fail1.t +0 -25
- data/sub/eac_git/vendor/git-subrepo/ext/test-more-bash/test/test/skip_all.t +0 -10
- data/sub/eac_git/vendor/git-subrepo/lib/git-subrepo +0 -2018
- data/sub/eac_git/vendor/git-subrepo/lib/git-subrepo.d/bash+.bash +0 -1
- data/sub/eac_git/vendor/git-subrepo/lib/git-subrepo.d/help-functions.bash +0 -338
- data/sub/eac_git/vendor/git-subrepo/man/man1/git-subrepo.1 +0 -727
- data/sub/eac_git/vendor/git-subrepo/note/0.4.0 +0 -12
- data/sub/eac_git/vendor/git-subrepo/note/AllGitCmds +0 -148
- data/sub/eac_git/vendor/git-subrepo/note/Cases +0 -32
- data/sub/eac_git/vendor/git-subrepo/note/Commands +0 -33
- data/sub/eac_git/vendor/git-subrepo/note/Dags +0 -199
- data/sub/eac_git/vendor/git-subrepo/note/Gists +0 -7
- data/sub/eac_git/vendor/git-subrepo/note/Links +0 -25
- data/sub/eac_git/vendor/git-subrepo/note/Plugins +0 -10
- data/sub/eac_git/vendor/git-subrepo/note/Spec +0 -39
- data/sub/eac_git/vendor/git-subrepo/note/Story1 +0 -57
- data/sub/eac_git/vendor/git-subrepo/note/ToDo +0 -55
- data/sub/eac_git/vendor/git-subrepo/note/design.swim +0 -137
- data/sub/eac_git/vendor/git-subrepo/note/design2.swim +0 -85
- data/sub/eac_git/vendor/git-subrepo/note/init-test +0 -38
- data/sub/eac_git/vendor/git-subrepo/note/pull-dance.txt +0 -18
- data/sub/eac_git/vendor/git-subrepo/note/recreate-rebase-conflict.sh +0 -56
- data/sub/eac_git/vendor/git-subrepo/note/subtree-rebase-fail-example/test.bash +0 -29
- data/sub/eac_git/vendor/git-subrepo/note/test-subrepo-push.sh +0 -69
- data/sub/eac_git/vendor/git-subrepo/note/test.sh +0 -58
- data/sub/eac_git/vendor/git-subrepo/pkg/bin/generate-completion.pl +0 -203
- data/sub/eac_git/vendor/git-subrepo/pkg/bin/generate-help-functions.pl +0 -87
- data/sub/eac_git/vendor/git-subrepo/share/completion.bash +0 -40
- data/sub/eac_git/vendor/git-subrepo/share/enable-completion.sh +0 -50
- data/sub/eac_git/vendor/git-subrepo/share/git-completion.bash +0 -2738
- data/sub/eac_git/vendor/git-subrepo/share/zsh-completion/_git-subrepo +0 -76
- data/sub/eac_git/vendor/git-subrepo/test/Dockerfile +0 -112
- data/sub/eac_git/vendor/git-subrepo/test/branch-all.t +0 -41
- data/sub/eac_git/vendor/git-subrepo/test/branch-rev-list-one-path.t +0 -42
- data/sub/eac_git/vendor/git-subrepo/test/branch-rev-list.t +0 -46
- data/sub/eac_git/vendor/git-subrepo/test/branch.t +0 -52
- data/sub/eac_git/vendor/git-subrepo/test/clean.t +0 -43
- data/sub/eac_git/vendor/git-subrepo/test/clone-annotated-tag.t +0 -45
- data/sub/eac_git/vendor/git-subrepo/test/clone.t +0 -102
- data/sub/eac_git/vendor/git-subrepo/test/compile.t +0 -19
- data/sub/eac_git/vendor/git-subrepo/test/config.t +0 -59
- data/sub/eac_git/vendor/git-subrepo/test/encode.t +0 -91
- data/sub/eac_git/vendor/git-subrepo/test/error.t +0 -171
- data/sub/eac_git/vendor/git-subrepo/test/fetch.t +0 -43
- data/sub/eac_git/vendor/git-subrepo/test/gitignore.t +0 -61
- data/sub/eac_git/vendor/git-subrepo/test/init.t +0 -63
- data/sub/eac_git/vendor/git-subrepo/test/issue29.t +0 -98
- data/sub/eac_git/vendor/git-subrepo/test/issue95.t +0 -98
- data/sub/eac_git/vendor/git-subrepo/test/issue96.t +0 -96
- data/sub/eac_git/vendor/git-subrepo/test/pull-all.t +0 -38
- data/sub/eac_git/vendor/git-subrepo/test/pull-merge.t +0 -114
- data/sub/eac_git/vendor/git-subrepo/test/pull-message.t +0 -88
- data/sub/eac_git/vendor/git-subrepo/test/pull-new-branch.t +0 -59
- data/sub/eac_git/vendor/git-subrepo/test/pull-ours.t +0 -90
- data/sub/eac_git/vendor/git-subrepo/test/pull-theirs.t +0 -82
- data/sub/eac_git/vendor/git-subrepo/test/pull-twice.t +0 -44
- data/sub/eac_git/vendor/git-subrepo/test/pull-worktree.t +0 -40
- data/sub/eac_git/vendor/git-subrepo/test/pull.t +0 -99
- data/sub/eac_git/vendor/git-subrepo/test/push-after-init.t +0 -52
- data/sub/eac_git/vendor/git-subrepo/test/push-after-push-no-changes.t +0 -27
- data/sub/eac_git/vendor/git-subrepo/test/push-force.t +0 -57
- data/sub/eac_git/vendor/git-subrepo/test/push-new-branch.t +0 -61
- data/sub/eac_git/vendor/git-subrepo/test/push-no-changes.t +0 -29
- data/sub/eac_git/vendor/git-subrepo/test/push-squash.t +0 -56
- data/sub/eac_git/vendor/git-subrepo/test/push.t +0 -177
- data/sub/eac_git/vendor/git-subrepo/test/rebase.t +0 -63
- data/sub/eac_git/vendor/git-subrepo/test/reclone.t +0 -52
- data/sub/eac_git/vendor/git-subrepo/test/repo/bar/HEAD +0 -1
- data/sub/eac_git/vendor/git-subrepo/test/repo/bar/config +0 -4
- data/sub/eac_git/vendor/git-subrepo/test/repo/bar/objects/1f/0c4b264caed0126814a0ede851a1e0b4e16ae6 +0 -0
- data/sub/eac_git/vendor/git-subrepo/test/repo/bar/objects/87/46903fdb1b9c2101377880125917c2e05b4d69 +0 -0
- data/sub/eac_git/vendor/git-subrepo/test/repo/bar/objects/94/c86ffc745232d89f78c6f895e11e71272518db +0 -0
- data/sub/eac_git/vendor/git-subrepo/test/repo/bar/objects/c6/76c57b6576743fa56278527aa60ebd2e202a7c +0 -0
- data/sub/eac_git/vendor/git-subrepo/test/repo/bar/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 +0 -0
- data/sub/eac_git/vendor/git-subrepo/test/repo/bar/objects/f6/2a8ff3feadf39b0a98f1a86ec6d1eb33858ee9 +0 -0
- data/sub/eac_git/vendor/git-subrepo/test/repo/bar/refs/heads/master +0 -1
- data/sub/eac_git/vendor/git-subrepo/test/repo/bar/refs/tags/A +0 -1
- data/sub/eac_git/vendor/git-subrepo/test/repo/foo/HEAD +0 -1
- data/sub/eac_git/vendor/git-subrepo/test/repo/foo/config +0 -4
- data/sub/eac_git/vendor/git-subrepo/test/repo/foo/objects/a0/f4cdaaf533a936296cdebbed8206c3b9ededa8 +0 -0
- data/sub/eac_git/vendor/git-subrepo/test/repo/foo/objects/e2/1291a1ad392a9d4c51dd9586804f1467b28afd +0 -0
- data/sub/eac_git/vendor/git-subrepo/test/repo/foo/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 +0 -0
- data/sub/eac_git/vendor/git-subrepo/test/repo/foo/refs/heads/master +0 -1
- data/sub/eac_git/vendor/git-subrepo/test/repo/init/HEAD +0 -1
- data/sub/eac_git/vendor/git-subrepo/test/repo/init/config +0 -5
- data/sub/eac_git/vendor/git-subrepo/test/repo/init/objects/11/523f5dcf03b4c89b592dc8a3d0308f68da2386 +0 -0
- data/sub/eac_git/vendor/git-subrepo/test/repo/init/objects/14/2addf8ec5f37334e837440122c62f2c68a29ad +0 -0
- data/sub/eac_git/vendor/git-subrepo/test/repo/init/objects/32/5180321750a21cd7a4e7ecda319e557a4f6a09 +0 -2
- data/sub/eac_git/vendor/git-subrepo/test/repo/init/objects/3d/918c6901c02f43af5d31779dd5e1f9166aeb36 +0 -0
- data/sub/eac_git/vendor/git-subrepo/test/repo/init/objects/3e/4cb596066dce63ba4d047abddb677389b65e19 +0 -0
- data/sub/eac_git/vendor/git-subrepo/test/repo/init/objects/4b/6e53022e7a04f07887697e4f3d7c377fd9822b +0 -0
- data/sub/eac_git/vendor/git-subrepo/test/repo/init/objects/58/931fc1bd559b59c41ea738fc7ad04f9ad01bd3 +0 -0
- data/sub/eac_git/vendor/git-subrepo/test/repo/init/objects/5e/c0c28e1b806f25efdca18fcf7a74b49c3755bd +0 -0
- data/sub/eac_git/vendor/git-subrepo/test/repo/init/objects/75/fa6584e748f57eff06eebdc55e9ac21d4fcbf2 +0 -1
- data/sub/eac_git/vendor/git-subrepo/test/repo/init/objects/80/2d5edbd5e1cb7fca82b5bd38e7c8a0a496fb20 +0 -0
- data/sub/eac_git/vendor/git-subrepo/test/repo/init/objects/94/7b3d714c38791e95ad6f928b48c98bb8708acd +0 -0
- data/sub/eac_git/vendor/git-subrepo/test/repo/init/objects/95/e1f2df3f4d5f3d7a60588c25a7ca8a913d3c2a +0 -1
- data/sub/eac_git/vendor/git-subrepo/test/repo/init/objects/b1/5f4a7666baf40d949548ead946a3370e273479 +0 -0
- data/sub/eac_git/vendor/git-subrepo/test/repo/init/objects/c3/ee8978c4c5d84c3b7d00ba8e5906933d027882 +0 -0
- data/sub/eac_git/vendor/git-subrepo/test/repo/init/objects/c8/b0bffbc405ef3fad7354ff833fbec36d67ddfa +0 -3
- data/sub/eac_git/vendor/git-subrepo/test/repo/init/objects/dd/8bdb934ec848137f011fe423b185505c343626 +0 -2
- data/sub/eac_git/vendor/git-subrepo/test/repo/init/objects/e2/9be58c767cfeb27235c995d293a7d71aac0135 +0 -2
- data/sub/eac_git/vendor/git-subrepo/test/repo/init/objects/ee/1224401fc6aac595145fa727dcf6706ac8aec1 +0 -1
- data/sub/eac_git/vendor/git-subrepo/test/repo/init/objects/f1/cc1a657b2e805c400f5dcaaa76bd29c6178b1b +0 -0
- data/sub/eac_git/vendor/git-subrepo/test/repo/init/refs/heads/master +0 -1
- data/sub/eac_git/vendor/git-subrepo/test/setup +0 -212
- data/sub/eac_git/vendor/git-subrepo/test/shellcheck.t +0 -37
- data/sub/eac_git/vendor/git-subrepo/test/status.t +0 -88
- data/sub/eac_git/vendor/git-subrepo/test/submodule.t +0 -45
- data/sub/eac_git/vendor/git-subrepo/test/zsh.t +0 -27
- /data/sub/{avm-git → avm-eac_redmine_base0}/.gitignore +0 -0
- /data/sub/{avm-eac_ruby_base1 → avm-eac_redmine_base0}/.rspec +0 -0
- /data/sub/{avm-eac_ruby_base1 → avm-eac_redmine_base0}/Gemfile +0 -0
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
#------------------------------------------------------------------------------
|
|
3
|
-
# Bash+ - Modern Bash Programming
|
|
4
|
-
#
|
|
5
|
-
# Copyright (c) 2013-2020 Ingy döt Net
|
|
6
|
-
#------------------------------------------------------------------------------
|
|
7
|
-
|
|
8
|
-
set -e
|
|
9
|
-
shopt -s compat31 &>/dev/null || true
|
|
10
|
-
|
|
11
|
-
#------------------------------------------------------------------------------
|
|
12
|
-
# Determine how `bash+` was called, and do the right thing:
|
|
13
|
-
#------------------------------------------------------------------------------
|
|
14
|
-
if [[ ${BASH_SOURCE[0]} != "$0" ]]; then
|
|
15
|
-
# 'bash+' is being sourced:
|
|
16
|
-
[[ ${BASH_SOURCE[0]} =~ /bin/bash\\+$ ]] || {
|
|
17
|
-
echo "Invalid Bash+ path '${BASH_SOURCE[0]}'" 2> /dev/null
|
|
18
|
-
exit 1
|
|
19
|
-
}
|
|
20
|
-
source "${BASH_SOURCE[0]%/bin/*}"/lib/bash+.bash || return $?
|
|
21
|
-
bash+:import "$@"
|
|
22
|
-
return $?
|
|
23
|
-
|
|
24
|
-
else
|
|
25
|
-
if [[ $# -eq 1 ]] && [[ $1 == --version ]]; then
|
|
26
|
-
echo 'bash+ version 0.0.9'
|
|
27
|
-
else
|
|
28
|
-
cat <<'...'
|
|
29
|
-
|
|
30
|
-
Greetings modern Bash programmer. Welcome to Bash+!
|
|
31
|
-
|
|
32
|
-
Bash+ is framework that makes Bash programming more like Ruby and Perl.
|
|
33
|
-
|
|
34
|
-
See: https://github.com/bpan-org/bashplus
|
|
35
|
-
|
|
36
|
-
If you got here trying to use bash+ in a program, you need to source it:
|
|
37
|
-
|
|
38
|
-
source bash+
|
|
39
|
-
|
|
40
|
-
Happy Bash Hacking!
|
|
41
|
-
|
|
42
|
-
...
|
|
43
|
-
fi
|
|
44
|
-
fi
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
Bash+(1)
|
|
2
|
-
========
|
|
3
|
-
|
|
4
|
-
Modern Bash Programming
|
|
5
|
-
|
|
6
|
-
<badge travis ingydotnet/bashplus>
|
|
7
|
-
|
|
8
|
-
= Synopsis
|
|
9
|
-
|
|
10
|
-
source bash+ :std :array
|
|
11
|
-
|
|
12
|
-
use Foo::Bar this that
|
|
13
|
-
|
|
14
|
-
Array.new args "$@"
|
|
15
|
-
|
|
16
|
-
if args.empty?; then
|
|
17
|
-
die "I need args!"
|
|
18
|
-
fi
|
|
19
|
-
|
|
20
|
-
Foo::Bar.new foo args
|
|
21
|
-
|
|
22
|
-
this is awesome # <= this is a real command! (You just imported it)
|
|
23
|
-
|
|
24
|
-
= Description
|
|
25
|
-
|
|
26
|
-
Bash+ is just Bash... *plus* some libraries that can make Bash programming a
|
|
27
|
-
lot nicer.
|
|
28
|
-
|
|
29
|
-
## Installation
|
|
30
|
-
|
|
31
|
-
Get the source code from GitHub:
|
|
32
|
-
|
|
33
|
-
git clone git@github.com:ingydotnet/bashplus
|
|
34
|
-
|
|
35
|
-
Then run:
|
|
36
|
-
|
|
37
|
-
make test
|
|
38
|
-
make install # Possibly with 'sudo'
|
|
39
|
-
|
|
40
|
-
= Usage
|
|
41
|
-
|
|
42
|
-
For now look at some libraries the use Bash+:
|
|
43
|
-
|
|
44
|
-
* https://github.com/ingydotnet/git-hub
|
|
45
|
-
* https://github.com/ingydotnet/json-bash
|
|
46
|
-
* https://github.com/ingydotnet/test-more-bash
|
|
47
|
-
|
|
48
|
-
= Status
|
|
49
|
-
|
|
50
|
-
If you are interested in chatting about this, `/join #bpan` on
|
|
51
|
-
irc.freenode.net.
|
|
52
|
-
|
|
53
|
-
= Author
|
|
54
|
-
|
|
55
|
-
Written by Ingy döt Net <ingy@ingy.net>
|
|
56
|
-
|
|
57
|
-
= Copyright & License
|
|
58
|
-
|
|
59
|
-
Copyright 2013-2020. Ingy döt Net.
|
|
60
|
-
|
|
61
|
-
The MIT License (MIT).
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
# bash+ - Modern Bash Programming
|
|
2
|
-
#
|
|
3
|
-
# Copyright (c) 2013-2020 Ingy döt Net
|
|
4
|
-
|
|
5
|
-
set -e
|
|
6
|
-
|
|
7
|
-
[[ ${BASHPLUS_VERSION-} ]] && return 0
|
|
8
|
-
|
|
9
|
-
BASHPLUS_VERSION=0.0.9
|
|
10
|
-
|
|
11
|
-
bash+:version-check() {
|
|
12
|
-
local cmd want got out
|
|
13
|
-
|
|
14
|
-
IFS=' ' read -r -a cmd <<< "${1:?}"
|
|
15
|
-
IFS=. read -r -a want <<< "${2:?}"
|
|
16
|
-
: "${want[2]:=0}"
|
|
17
|
-
|
|
18
|
-
if [[ ${cmd[*]} == bash ]]; then
|
|
19
|
-
got=("${BASH_VERSINFO[@]}")
|
|
20
|
-
BASHPLUS_VERSION_CHECK=${BASH_VERSION-}
|
|
21
|
-
else
|
|
22
|
-
[[ ${#cmd[*]} -gt 1 ]] || cmd+=(--version)
|
|
23
|
-
out=$("${cmd[@]}") ||
|
|
24
|
-
{ echo "Failed to run '${cmd[*]}'" >&2; exit 1; }
|
|
25
|
-
[[ $out =~ ([0-9]+\.[0-9]+(\.[0-9]+)?) ]] ||
|
|
26
|
-
{ echo "Can't determine version number from '${cmd[*]}'" >&2; exit 1; }
|
|
27
|
-
BASHPLUS_VERSION_CHECK=${BASH_REMATCH[1]}
|
|
28
|
-
IFS=. read -r -a got <<< "$BASHPLUS_VERSION_CHECK"
|
|
29
|
-
fi
|
|
30
|
-
: "${got[2]:=0}"
|
|
31
|
-
|
|
32
|
-
((
|
|
33
|
-
got[0] > want[0] ||
|
|
34
|
-
got[0] == want[0] && got[1] > want[1] ||
|
|
35
|
-
got[0] == want[0] && got[1] == want[1] && got[2] >= want[2]
|
|
36
|
-
)) || return 1
|
|
37
|
-
|
|
38
|
-
return 0
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
bash+:version-check bash 3.2 ||
|
|
42
|
-
{ echo "The 'bashplus' library requires 'Bash 3.2+'." >&2; exit 1; }
|
|
43
|
-
|
|
44
|
-
@() (echo "$@") # XXX do we want to keep this?
|
|
45
|
-
|
|
46
|
-
bash+:export:std() {
|
|
47
|
-
set -o pipefail
|
|
48
|
-
|
|
49
|
-
if bash+:version-check bash 4.4; then
|
|
50
|
-
set -o nounset
|
|
51
|
-
shopt -s inherit_errexit
|
|
52
|
-
fi
|
|
53
|
-
|
|
54
|
-
echo use die warn
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
# Source a bash library call import on it:
|
|
58
|
-
bash+:use() {
|
|
59
|
-
local library_name=${1:?bash+:use requires library name}; shift
|
|
60
|
-
local library_path=; library_path=$(bash+:findlib "$library_name") || true
|
|
61
|
-
[[ $library_path ]] ||
|
|
62
|
-
bash+:die "Can't find library '$library_name'." 1
|
|
63
|
-
|
|
64
|
-
source "$library_path"
|
|
65
|
-
if bash+:can "$library_name:import"; then
|
|
66
|
-
"$library_name:import" "$@"
|
|
67
|
-
else
|
|
68
|
-
bash+:import "$@"
|
|
69
|
-
fi
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
# Copy bash+: functions to unprefixed functions
|
|
73
|
-
bash+:import() {
|
|
74
|
-
local arg=
|
|
75
|
-
for arg; do
|
|
76
|
-
if [[ $arg =~ ^: ]]; then
|
|
77
|
-
# Word splitting required here
|
|
78
|
-
# shellcheck disable=2046
|
|
79
|
-
bash+:import $(bash+:export"$arg")
|
|
80
|
-
else
|
|
81
|
-
bash+:fcopy "bash+:$arg" "$arg"
|
|
82
|
-
fi
|
|
83
|
-
done
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
# Function copy
|
|
87
|
-
bash+:fcopy() {
|
|
88
|
-
bash+:can "${1:?bash+:fcopy requires an input function name}" ||
|
|
89
|
-
bash+:die "'$1' is not a function" 2
|
|
90
|
-
local func
|
|
91
|
-
func=$(type "$1" 3>/dev/null | tail -n+3)
|
|
92
|
-
[[ ${3-} ]] && "$3"
|
|
93
|
-
eval "${2:?bash+:fcopy requires an output function name}() $func"
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
# Find the path of a library
|
|
97
|
-
bash+:findlib() {
|
|
98
|
-
local library_name
|
|
99
|
-
library_name=$(tr '[:upper:]' '[:lower:]' <<< "${1//:://}").bash
|
|
100
|
-
local lib=${BASHPLUSLIB:-${BASHLIB:-$PATH}}
|
|
101
|
-
library_name=${library_name//+/\\+}
|
|
102
|
-
IFS=':' read -r -a libs <<< "$lib"
|
|
103
|
-
find "${libs[@]}" -name "${library_name##*/}" 2>/dev/null |
|
|
104
|
-
grep -E "$library_name\$" |
|
|
105
|
-
head -n1
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
bash+:die() {
|
|
109
|
-
local msg=${1:-Died}
|
|
110
|
-
msg=${msg//\\n/$'\n'}
|
|
111
|
-
|
|
112
|
-
printf "%s" "$msg" >&2
|
|
113
|
-
if [[ $msg == *$'\n' ]]; then
|
|
114
|
-
exit 1
|
|
115
|
-
else
|
|
116
|
-
printf "\n"
|
|
117
|
-
fi
|
|
118
|
-
|
|
119
|
-
local c
|
|
120
|
-
IFS=' ' read -r -a c <<< "$(caller "${DIE_STACK_LEVEL:-${2:-0}}")"
|
|
121
|
-
if (( ${#c[@]} == 2 )); then
|
|
122
|
-
msg=" at line %d of %s"
|
|
123
|
-
else
|
|
124
|
-
msg=" at line %d in %s of %s"
|
|
125
|
-
fi
|
|
126
|
-
|
|
127
|
-
# shellcheck disable=2059
|
|
128
|
-
printf "$msg\n" "${c[@]}" >&2
|
|
129
|
-
exit 1
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
bash+:warn() {
|
|
133
|
-
local msg=${1:-Warning}
|
|
134
|
-
printf "%s" "${msg//\\n/$'\n'}\n" >&2
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
bash+:can() {
|
|
138
|
-
[[ $(type -t "${1:?bash+:can requires a function name}") == function ]]
|
|
139
|
-
}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35)
|
|
2
|
-
.\"
|
|
3
|
-
.\" Standard preamble:
|
|
4
|
-
.\" ========================================================================
|
|
5
|
-
.de Sp \" Vertical space (when we can't use .PP)
|
|
6
|
-
.if t .sp .5v
|
|
7
|
-
.if n .sp
|
|
8
|
-
..
|
|
9
|
-
.de Vb \" Begin verbatim text
|
|
10
|
-
.ft CW
|
|
11
|
-
.nf
|
|
12
|
-
.ne \\$1
|
|
13
|
-
..
|
|
14
|
-
.de Ve \" End verbatim text
|
|
15
|
-
.ft R
|
|
16
|
-
.fi
|
|
17
|
-
..
|
|
18
|
-
.\" Set up some character translations and predefined strings. \*(-- will
|
|
19
|
-
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
|
20
|
-
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
|
21
|
-
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
|
22
|
-
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
|
23
|
-
.\" nothing in troff, for use with C<>.
|
|
24
|
-
.tr \(*W-
|
|
25
|
-
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
|
26
|
-
.ie n \{\
|
|
27
|
-
. ds -- \(*W-
|
|
28
|
-
. ds PI pi
|
|
29
|
-
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
|
30
|
-
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
|
31
|
-
. ds L" ""
|
|
32
|
-
. ds R" ""
|
|
33
|
-
. ds C` ""
|
|
34
|
-
. ds C' ""
|
|
35
|
-
'br\}
|
|
36
|
-
.el\{\
|
|
37
|
-
. ds -- \|\(em\|
|
|
38
|
-
. ds PI \(*p
|
|
39
|
-
. ds L" ``
|
|
40
|
-
. ds R" ''
|
|
41
|
-
. ds C`
|
|
42
|
-
. ds C'
|
|
43
|
-
'br\}
|
|
44
|
-
.\"
|
|
45
|
-
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
|
46
|
-
.ie \n(.g .ds Aq \(aq
|
|
47
|
-
.el .ds Aq '
|
|
48
|
-
.\"
|
|
49
|
-
.\" If the F register is >0, we'll generate index entries on stderr for
|
|
50
|
-
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
|
51
|
-
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
|
52
|
-
.\" output yourself in some meaningful fashion.
|
|
53
|
-
.\"
|
|
54
|
-
.\" Avoid warning from groff about undefined register 'F'.
|
|
55
|
-
.de IX
|
|
56
|
-
..
|
|
57
|
-
.nr rF 0
|
|
58
|
-
.if \n(.g .if rF .nr rF 1
|
|
59
|
-
.if (\n(rF:(\n(.g==0)) \{\
|
|
60
|
-
. if \nF \{\
|
|
61
|
-
. de IX
|
|
62
|
-
. tm Index:\\$1\t\\n%\t"\\$2"
|
|
63
|
-
..
|
|
64
|
-
. if !\nF==2 \{\
|
|
65
|
-
. nr % 0
|
|
66
|
-
. nr F 2
|
|
67
|
-
. \}
|
|
68
|
-
. \}
|
|
69
|
-
.\}
|
|
70
|
-
.rr rF
|
|
71
|
-
.\" ========================================================================
|
|
72
|
-
.\"
|
|
73
|
-
.IX Title "STDIN 1"
|
|
74
|
-
.TH STDIN 1 "November 2020" "Generated by Swim v0.1.48" "Modern Bash Programming"
|
|
75
|
-
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
|
76
|
-
.\" way too many mistakes in technical documents.
|
|
77
|
-
.if n .ad l
|
|
78
|
-
.nh
|
|
79
|
-
.SH "Name"
|
|
80
|
-
.IX Header "Name"
|
|
81
|
-
Bash+(1) \- Modern Bash Programming
|
|
82
|
-
.SH "Synopsis"
|
|
83
|
-
.IX Header "Synopsis"
|
|
84
|
-
.Vb 1
|
|
85
|
-
\& source bash+ :std :array
|
|
86
|
-
\&
|
|
87
|
-
\& use Foo::Bar this that
|
|
88
|
-
\&
|
|
89
|
-
\& Array.new args "$@"
|
|
90
|
-
\&
|
|
91
|
-
\& if args.empty?; then
|
|
92
|
-
\& die "I need args!"
|
|
93
|
-
\& fi
|
|
94
|
-
\&
|
|
95
|
-
\& Foo::Bar.new foo args
|
|
96
|
-
\&
|
|
97
|
-
\& this is awesome # <= this is a real command! (You just imported it)
|
|
98
|
-
.Ve
|
|
99
|
-
.SH "Description"
|
|
100
|
-
.IX Header "Description"
|
|
101
|
-
Bash+ is just Bash... \fBplus\fR some libraries that can make Bash programming a lot nicer.
|
|
102
|
-
.PP
|
|
103
|
-
Get the source code from GitHub:
|
|
104
|
-
.PP
|
|
105
|
-
.Vb 1
|
|
106
|
-
\& git clone git@github.com:ingydotnet/bashplus
|
|
107
|
-
.Ve
|
|
108
|
-
.PP
|
|
109
|
-
Then run:
|
|
110
|
-
.PP
|
|
111
|
-
.Vb 2
|
|
112
|
-
\& make test
|
|
113
|
-
\& make install # Possibly with \*(Aqsudo\*(Aq
|
|
114
|
-
.Ve
|
|
115
|
-
.SH "Usage"
|
|
116
|
-
.IX Header "Usage"
|
|
117
|
-
For now look at some libraries the use Bash+:
|
|
118
|
-
.IP "\(bu" 4
|
|
119
|
-
<https://github.com/ingydotnet/git\-hub>
|
|
120
|
-
.IP "\(bu" 4
|
|
121
|
-
<https://github.com/ingydotnet/json\-bash>
|
|
122
|
-
.IP "\(bu" 4
|
|
123
|
-
<https://github.com/ingydotnet/test\-more\-bash>
|
|
124
|
-
.SH "Status"
|
|
125
|
-
.IX Header "Status"
|
|
126
|
-
If you are interested in chatting about this, \f(CW\*(C`/join #bpan\*(C'\fR on irc.freenode.net.
|
|
127
|
-
.SH "Author"
|
|
128
|
-
.IX Header "Author"
|
|
129
|
-
Written by Ingy döt Net <ingy@ingy.net>
|
|
130
|
-
.SH "Copyright & License"
|
|
131
|
-
.IX Header "Copyright & License"
|
|
132
|
-
Copyright 2013\-2020. Ingy döt Net.
|
|
133
|
-
.PP
|
|
134
|
-
The \s-1MIT\s0 License (\s-1MIT\s0).
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35)
|
|
2
|
-
.\"
|
|
3
|
-
.\" Standard preamble:
|
|
4
|
-
.\" ========================================================================
|
|
5
|
-
.de Sp \" Vertical space (when we can't use .PP)
|
|
6
|
-
.if t .sp .5v
|
|
7
|
-
.if n .sp
|
|
8
|
-
..
|
|
9
|
-
.de Vb \" Begin verbatim text
|
|
10
|
-
.ft CW
|
|
11
|
-
.nf
|
|
12
|
-
.ne \\$1
|
|
13
|
-
..
|
|
14
|
-
.de Ve \" End verbatim text
|
|
15
|
-
.ft R
|
|
16
|
-
.fi
|
|
17
|
-
..
|
|
18
|
-
.\" Set up some character translations and predefined strings. \*(-- will
|
|
19
|
-
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
|
20
|
-
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
|
21
|
-
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
|
22
|
-
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
|
23
|
-
.\" nothing in troff, for use with C<>.
|
|
24
|
-
.tr \(*W-
|
|
25
|
-
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
|
26
|
-
.ie n \{\
|
|
27
|
-
. ds -- \(*W-
|
|
28
|
-
. ds PI pi
|
|
29
|
-
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
|
30
|
-
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
|
31
|
-
. ds L" ""
|
|
32
|
-
. ds R" ""
|
|
33
|
-
. ds C` ""
|
|
34
|
-
. ds C' ""
|
|
35
|
-
'br\}
|
|
36
|
-
.el\{\
|
|
37
|
-
. ds -- \|\(em\|
|
|
38
|
-
. ds PI \(*p
|
|
39
|
-
. ds L" ``
|
|
40
|
-
. ds R" ''
|
|
41
|
-
. ds C`
|
|
42
|
-
. ds C'
|
|
43
|
-
'br\}
|
|
44
|
-
.\"
|
|
45
|
-
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
|
46
|
-
.ie \n(.g .ds Aq \(aq
|
|
47
|
-
.el .ds Aq '
|
|
48
|
-
.\"
|
|
49
|
-
.\" If the F register is >0, we'll generate index entries on stderr for
|
|
50
|
-
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
|
51
|
-
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
|
52
|
-
.\" output yourself in some meaningful fashion.
|
|
53
|
-
.\"
|
|
54
|
-
.\" Avoid warning from groff about undefined register 'F'.
|
|
55
|
-
.de IX
|
|
56
|
-
..
|
|
57
|
-
.nr rF 0
|
|
58
|
-
.if \n(.g .if rF .nr rF 1
|
|
59
|
-
.if (\n(rF:(\n(.g==0)) \{\
|
|
60
|
-
. if \nF \{\
|
|
61
|
-
. de IX
|
|
62
|
-
. tm Index:\\$1\t\\n%\t"\\$2"
|
|
63
|
-
..
|
|
64
|
-
. if !\nF==2 \{\
|
|
65
|
-
. nr % 0
|
|
66
|
-
. nr F 2
|
|
67
|
-
. \}
|
|
68
|
-
. \}
|
|
69
|
-
.\}
|
|
70
|
-
.rr rF
|
|
71
|
-
.\" ========================================================================
|
|
72
|
-
.\"
|
|
73
|
-
.IX Title "STDIN 1"
|
|
74
|
-
.TH STDIN 1 "November 2020" "Generated by Swim v0.1.48" "Modern Bash Programming"
|
|
75
|
-
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
|
76
|
-
.\" way too many mistakes in technical documents.
|
|
77
|
-
.if n .ad l
|
|
78
|
-
.nh
|
|
79
|
-
.SH "Name"
|
|
80
|
-
.IX Header "Name"
|
|
81
|
-
Bash+(1) \- Modern Bash Programming
|
|
82
|
-
.SH "Synopsis"
|
|
83
|
-
.IX Header "Synopsis"
|
|
84
|
-
.Vb 1
|
|
85
|
-
\& source bash+ :std :array
|
|
86
|
-
\&
|
|
87
|
-
\& use Foo::Bar this that
|
|
88
|
-
\&
|
|
89
|
-
\& Array.new args "$@"
|
|
90
|
-
\&
|
|
91
|
-
\& if args.empty?; then
|
|
92
|
-
\& die "I need args!"
|
|
93
|
-
\& fi
|
|
94
|
-
\&
|
|
95
|
-
\& Foo::Bar.new foo args
|
|
96
|
-
\&
|
|
97
|
-
\& this is awesome # <= this is a real command! (You just imported it)
|
|
98
|
-
.Ve
|
|
99
|
-
.SH "Description"
|
|
100
|
-
.IX Header "Description"
|
|
101
|
-
Bash+ is just Bash... \fBplus\fR some libraries that can make Bash programming a lot nicer.
|
|
102
|
-
.PP
|
|
103
|
-
Get the source code from GitHub:
|
|
104
|
-
.PP
|
|
105
|
-
.Vb 1
|
|
106
|
-
\& git clone git@github.com:ingydotnet/bashplus
|
|
107
|
-
.Ve
|
|
108
|
-
.PP
|
|
109
|
-
Then run:
|
|
110
|
-
.PP
|
|
111
|
-
.Vb 2
|
|
112
|
-
\& make test
|
|
113
|
-
\& make install # Possibly with \*(Aqsudo\*(Aq
|
|
114
|
-
.Ve
|
|
115
|
-
.SH "Usage"
|
|
116
|
-
.IX Header "Usage"
|
|
117
|
-
For now look at some libraries the use Bash+:
|
|
118
|
-
.IP "\(bu" 4
|
|
119
|
-
<https://github.com/ingydotnet/git\-hub>
|
|
120
|
-
.IP "\(bu" 4
|
|
121
|
-
<https://github.com/ingydotnet/json\-bash>
|
|
122
|
-
.IP "\(bu" 4
|
|
123
|
-
<https://github.com/ingydotnet/test\-more\-bash>
|
|
124
|
-
.SH "Status"
|
|
125
|
-
.IX Header "Status"
|
|
126
|
-
If you are interested in chatting about this, \f(CW\*(C`/join #bpan\*(C'\fR on irc.freenode.net.
|
|
127
|
-
.SH "Author"
|
|
128
|
-
.IX Header "Author"
|
|
129
|
-
Written by Ingy döt Net <ingy@ingy.net>
|
|
130
|
-
.SH "Copyright & License"
|
|
131
|
-
.IX Header "Copyright & License"
|
|
132
|
-
Copyright 2013\-2020. Ingy döt Net.
|
|
133
|
-
.PP
|
|
134
|
-
The \s-1MIT\s0 License (\s-1MIT\s0).
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
source test/setup
|
|
4
|
-
|
|
5
|
-
PATH=$PWD/bin:$PATH
|
|
6
|
-
source bash+ :std
|
|
7
|
-
|
|
8
|
-
got=$(die "Nope" 2>&1) || true
|
|
9
|
-
want="Nope
|
|
10
|
-
at line 8 in main of test/die.t"
|
|
11
|
-
is "$got" "$want" "die() msg ok"
|
|
12
|
-
|
|
13
|
-
got=$(die "Nope\n" 2>&1) || true
|
|
14
|
-
want="Nope"
|
|
15
|
-
is "$got" "$want" "die() msg ok"
|
|
16
|
-
|
|
17
|
-
done_testing 2
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
source test/setup
|
|
4
|
-
|
|
5
|
-
PATH=$PWD/bin:$PATH
|
|
6
|
-
source bash+
|
|
7
|
-
|
|
8
|
-
foo() {
|
|
9
|
-
echo O HAI
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
like "$(type bar 2>&1)" 'bar: not found' \
|
|
13
|
-
'bar is not yet a function'
|
|
14
|
-
|
|
15
|
-
bash+:fcopy foo bar
|
|
16
|
-
|
|
17
|
-
type -t bar &>/dev/null
|
|
18
|
-
ok $? 'bar is now a function'
|
|
19
|
-
is "$(type foo | tail -n+3)" "$(type bar | tail -n+3)" \
|
|
20
|
-
'Copy matches original'
|
|
21
|
-
|
|
22
|
-
done_testing 3
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
# shellcheck shell=bash
|
|
2
|
-
|
|
3
|
-
#------------------------------------------------------------------------------
|
|
4
|
-
# This is a tiny version of test-more-bash that I use here. test-more-bash uses
|
|
5
|
-
# bash+, so I want to avoid the circular dependency. This little guy does
|
|
6
|
-
# 80-90% what test-more-bash does, with minimal code. It's a good example of
|
|
7
|
-
# how nice Bash can be.
|
|
8
|
-
#------------------------------------------------------------------------------
|
|
9
|
-
|
|
10
|
-
set -e -u -o pipefail
|
|
11
|
-
[[ $BASH_VERSION == 4.0* ]] && set +u
|
|
12
|
-
|
|
13
|
-
run=0
|
|
14
|
-
|
|
15
|
-
plan() {
|
|
16
|
-
echo "1..$1"
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
pass() {
|
|
20
|
-
(( ++run ))
|
|
21
|
-
echo "ok $run${1:+ - $1}"
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
fail() {
|
|
25
|
-
(( ++run ))
|
|
26
|
-
echo "not ok $run${1:+ - $1}"
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
is() {
|
|
30
|
-
if [[ $1 == "$2" ]]; then
|
|
31
|
-
pass "$3"
|
|
32
|
-
else
|
|
33
|
-
fail "$3"
|
|
34
|
-
diag "Got: $1"
|
|
35
|
-
diag "Want: $2"
|
|
36
|
-
fi
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
ok() {
|
|
40
|
-
if (exit "${1:-$?}"); then
|
|
41
|
-
pass "$2"
|
|
42
|
-
else
|
|
43
|
-
fail "$2"
|
|
44
|
-
fi
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
like() {
|
|
48
|
-
if [[ $1 =~ $2 ]]; then
|
|
49
|
-
pass "$3"
|
|
50
|
-
else
|
|
51
|
-
fail "$3"
|
|
52
|
-
diag "Got: $1"
|
|
53
|
-
diag "Like: $2"
|
|
54
|
-
fi
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
unlike() {
|
|
58
|
-
if [[ ! $1 =~ $2 ]]; then
|
|
59
|
-
pass "$3"
|
|
60
|
-
else
|
|
61
|
-
fail "$3"
|
|
62
|
-
diag "Got: $1"
|
|
63
|
-
diag "Dont: $2"
|
|
64
|
-
fi
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
done_testing() {
|
|
68
|
-
echo "1..${1:-$run}"
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
diag() {
|
|
72
|
-
echo "# ${1//$'\n'/$'\n'# }" >&2
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
note() {
|
|
76
|
-
echo "# ${1//$'\n'/$'\n'# }"
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
#! vim: ft=sh sw=2:
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
source test/setup
|
|
4
|
-
|
|
5
|
-
PATH=$PWD/bin:$PATH
|
|
6
|
-
source bash+
|
|
7
|
-
|
|
8
|
-
if ! command -v shellcheck >/dev/null; then
|
|
9
|
-
plan skip_all "The 'shellcheck' utility is not installed"
|
|
10
|
-
fi
|
|
11
|
-
if [[ ! $(shellcheck --version) =~ 0\.7\.1 ]]; then
|
|
12
|
-
plan skip_all "This test wants shellcheck version 0.7.1"
|
|
13
|
-
fi
|
|
14
|
-
|
|
15
|
-
IFS=$'\n' read -d '' -r -a shell_files <<< "$(
|
|
16
|
-
find bin -type f
|
|
17
|
-
find lib -type f
|
|
18
|
-
echo test/setup
|
|
19
|
-
find test -name '*.t'
|
|
20
|
-
)" || true
|
|
21
|
-
|
|
22
|
-
skips=(
|
|
23
|
-
# We want to keep these 2 here always:
|
|
24
|
-
SC1090 # Can't follow non-constant source. Use a directive to specify location.
|
|
25
|
-
SC1091 # Not following: bash+ was not specified as input (see shellcheck -x).
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
skip=$(IFS=,; echo "${skips[*]}")
|
|
29
|
-
|
|
30
|
-
for file in "${shell_files[@]}"; do
|
|
31
|
-
[[ $file == *swp ]] && continue
|
|
32
|
-
is "$(shellcheck -e "$skip" "$file")" "" \
|
|
33
|
-
"The shell file '$file' passes shellcheck"
|
|
34
|
-
done
|
|
35
|
-
|
|
36
|
-
done_testing
|
|
37
|
-
|
|
38
|
-
# vim: set ft=sh:
|