hoc
hoc copied to clipboard
help message mentions the formats that are unsupported
--help shows that it's possible to output the result in the different formats but in fact only one is supported. I'd expect that it won't show unsupported configurations/options to not confuse me.
$ hoc --help
Usage (0.8): hoc [options]
-h, --help Show brief intro
-f, --format Output format (text|xml|json|int)
-e, --exclude Glob pattern to exclude files/dirs, e.g. "vendor/**"
-d, --dir Directory to scan
$ hoc -f text
/home/coder/.gem/ruby/gems/hoc-0.8/lib/hoc.rb:38:in `initialize': only "int" format is supported now (RuntimeError)
from /home/coder/.gem/ruby/gems/hoc-0.8/bin/hoc:65:in `new'
from /home/coder/.gem/ruby/gems/hoc-0.8/bin/hoc:65:in `<top (required)>'
from /home/coder/bin/hoc:22:in `load'
from /home/coder/bin/hoc:22:in `<main>'
@yegor256/z please, pay attention to this issue
@rultor release, tag is 0.8.1
@rultor release, tag is
0.8.1
@php-coder @yegor256 Oops, I failed. You can see the full log here (spent 3min)
0% [Working]
Get:1 http://ppa.launchpad.net/git-core/ppa/ubuntu/ trusty/main git amd64 1:2.16.2-0ppa1~ubuntu14.04.1 [4955 kB]
0% [1 git 1190 B/4955 kB 0%]
100% [Working]
Fetched 4955 kB in 0s (9576 kB/s)
dpkg-preconfigure: unable to re-open stdin: No such file or directory
Selecting previously unselected package git.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 62600 files and directories currently installed.)
Preparing to unpack .../git_1%3a2.16.2-0ppa1~ubuntu14.04.1_amd64.deb ...
Unpacking git (1:2.16.2-0ppa1~ubuntu14.04.1) ...
Setting up git (1:2.16.2-0ppa1~ubuntu14.04.1) ...
W: Duplicate sources.list entry http://ppa.launchpad.net/git-core/ppa/ubuntu/ trusty/main amd64 Packages (/var/lib/apt/lists/ppa.launchpad.net_git-core_ppa_ubuntu_dists_trusty_main_binary-amd64_Packages.gz)
W: You may want to run apt-get update to correct these problems
+ pdd --verbose --file=/dev/null
Found 7 lines in /home/r/repo/.pdd
My version is 0.20.3
Ruby version is 2.3.3 at x86_64-linux
Reading .
Excluding target/**/*
Excluding src/main/resources/images/**/*
35 file(s) found, 171 excluded
Reading .simplecov...
Reading Rakefile...
Reading Gemfile...
Reading .0pdd.yml...
Reading .github/ISSUE_TEMPLATE.md...
Reading .github/PULL_REQUEST_TEMPLATE.md...
Reading cucumber.yml...
Reading .travis.yml...
Reading LICENSE.txt...
Reading test/test_git.rb...
Reading test/test_hoc.rb...
Reading test/test_svn.rb...
Reading test/test__helper.rb...
Reading .pdd...
Reading .rultor.yml...
Reading lib/hoc/git.rb...
Reading lib/hoc/hits.rb...
Reading lib/hoc/version.rb...
Reading lib/hoc/svn.rb...
Reading lib/hoc.rb...
Reading README.md...
Reading appveyor.yml...
Reading .rubocop.yml...
Reading .gitignore...
Reading hoc.gemspec...
Reading features/git_excludes.feature...
Reading features/uses_config.feature...
Reading features/git_basics.feature...
Reading features/cli.feature...
Reading features/support/env.rb...
Reading features/gem_package.feature...
Reading features/step_definitions/steps.rb...
Reading features/svn_basics.feature...
Reading bin/hoc...
Reading .gitattributes...
+ sudo -i bundle install
\u001b[33mDon't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.\u001b[0m
\u001b[31mCould not locate Gemfile or .bundle/ directory\u001b[0m
container 4c27b1f3e3de87ce57b74fcffb33c396627f189b5b14723cc8a2502a86758505 is dead
Tue Mar 20 10:47:40 CET 2018
@php-coder I believe it's fixed, all formats are supported now, please try version 0.8.1
@rultor release, tag is 0.8.1