Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
  • Freezed's avatar
    c8d063a4
    :sparkles: Add activity creation #1 · c8d063a4
    Freezed authored
    Define options
    Options not passed as argument are prompted;
    - if required
    - and default value not set
    
    TODO: Response not correctly formated for status and error
    
            Status:  N/A
            Error:   N/A
    c8d063a4
    History
    :sparkles: Add activity creation #1
    Freezed authored
    Define options
    Options not passed as argument are prompted;
    - if required
    - and default value not set
    
    TODO: Response not correctly formated for status and error
    
            Status:  N/A
            Error:   N/A
main.py 588 B
#!/usr/bin/env python3
# coding:utf-8
"""
run.py: CLI launcher, just run it

Add `geostrapy` commands to `strava-cli`
"""


import click

from strava.commands import (
    login,
    logout,
    set_config,
)

from commands import post_create


@click.group()
def cli():
    """
    Share data related to physical activities over an API (geo-localized or not)
    Add commands for `strava-cli` https://github.com/bwilczynski/strava-cli
    """


cli.add_command(login)
cli.add_command(logout)
cli.add_command(post_create)
cli.add_command(set_config)

if __name__ == "__main__":
    cli()