Skip to content

command line interface proposal #14

@deanmalmgren

Description

@deanmalmgren

I'd like to propose the following command line interface:

# this basically just prints out the equivalent of fun --help, which should display
# all available subcommands
fun

# this is the equivalent of running the current slack_fun.py script.
fun slack mstringer

# equivalent of running the current slack dropbox_fun.py script
fun dropbox path/to/dropbox/folder

This will make it easy to have a consistent interface for other fun commands. I might further propose organization that looks something like:

./
|-- LICENSE
|-- README.md
|-- bin
|   `-- fun.py
|-- fun
|   |-- __init__.py
|   |-- dropbox.py
|   `-- slack.py
|-- requirements.txt
|-- setup.py

and that we have users store their configuration variables in a ~/.funrc.py file.

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