Skip to content
This repository was archived by the owner on May 26, 2025. It is now read-only.
This repository was archived by the owner on May 26, 2025. It is now read-only.

How invoke __main__.py to use cli commands? #23

@jventura68

Description

@jventura68

Thanks for share your template, it's amazing.

I'm trying to invoke cli command from terminal, can anyone give an example of this invocation?.

I have a project named "templateFast" and I tried:

  • At c:\templateFast path:

    c:\templateFast> python project/__main__.py --help
    Traceback (most recent call last):
     File "C:\.....\templateFast\templatefast\__main__.py", line 2, in <module>
        from .cli import cli
      ImportError: attempted relative import with no known parent package
    
  • At c:\templateFast\templateFast path throw the same error

  • The execution with python -m don't run in any case

Any help will be appreciated.
Thanks

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