Method: Licensed::Sources::Go#package_info_command
- Defined in:
- lib/licensed/sources/go.rb
#package_info_command(*args) ⇒ Object
Returns package information as a JSON string
args - additional arguments to ‘go list`, e.g. Go package import path
200 201 202 |
# File 'lib/licensed/sources/go.rb', line 200 def package_info_command(*args) Licensed::Shell.execute("go", "list", "-e", "-json", *Array(args)).strip end |