Skip to content

fig help $cmd fails without fig.yml file #602

Closed

Description

@kojiromike

Basically…

$ ls -a
.   ..
$ fig help up
Can't find fig.yml. Are you in the right directory?

…I think fig help $cmd should not care if there's a fig.yml file in the current directory to give you help.

Activity

  1. kojiromike commented on Oct 31, 2014

    @kojiromike
    Author

    Other things that should probably be fixed in the same PR:

    $ echo 'fail:' > fig.yml 
    $ fig help up
    Service "%s" doesn't have any configuration options. All top level keys in your fig.yml must map to a dictionary of configuration options.
    $ > fig.yml
    $ fig help up
    Traceback (most recent call last):
      File "/usr/local/Cellar/fig/1.0.0/libexec/bin/fig", line 8, in <module>
        load_entry_point('fig==1.0.0', 'console_scripts', 'fig')()
      File "/usr/local/Cellar/fig/1.0.0/lib/python2.7/site-packages/fig-1.0.0-py2.7.egg/fig/cli/main.py", line 31, in main
      File "/usr/local/Cellar/fig/1.0.0/lib/python2.7/site-packages/fig-1.0.0-py2.7.egg/fig/cli/docopt_command.py", line 21, in sys_dispatch
      File "/usr/local/Cellar/fig/1.0.0/lib/python2.7/site-packages/fig-1.0.0-py2.7.egg/fig/cli/command.py", line 28, in dispatch
      File "/usr/local/Cellar/fig/1.0.0/lib/python2.7/site-packages/fig-1.0.0-py2.7.egg/fig/cli/docopt_command.py", line 24, in dispatch
      File "/usr/local/Cellar/fig/1.0.0/lib/python2.7/site-packages/fig-1.0.0-py2.7.egg/fig/cli/command.py", line 49, in perform_command
      File "/usr/local/Cellar/fig/1.0.0/lib/python2.7/site-packages/fig-1.0.0-py2.7.egg/fig/cli/command.py", line 78, in get_project
      File "/usr/local/Cellar/fig/1.0.0/lib/python2.7/site-packages/fig-1.0.0-py2.7.egg/fig/project.py", line 68, in from_config
    AttributeError: 'NoneType' object has no attribute 'items'
    
  2. added a commit that references this issue on Nov 3, 2014
    604b370
  3. added 2 commits that reference this issue on Apr 10, 2015
    41399ca
    564d56a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions