Skip to content

beans version should output the version even if the folder isn't beans'd yet #24

@czottmann

Description

@czottmann

Beans v0.3.3.

Issue description

In a folder that doesn't contain .beans/, beans version outputs an error and its usage info, but not the version.

Steps to reproduce the issue

In a folder which contains no .beans/ subfolder, and whose parent doesn't, either, run beans version.

What's the expected result?

The tool should output its version string.

What's the actual result?

Error: no .beans directory found at /Users/czottmann/Desktop/.beans (run 'beans init' to create one)
Usage:
  beans version [flags]

Flags:
  -h, --help   help for version

Global Flags:
      --beans-path string   Path to data directory (overrides config)
      --config string       Path to config file (default: searches upward for .beans.yml)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions