#!/usr/bin/env python
#
# Copyright 2014 the original author or authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.
#
"""
A handy tool to manage your bash environment across machines.
"""
from shrew.cli import entrypoint


def cmd_init(args):
    pass


def cmd_uninstall(args):
    pass


@entrypoint
def main(cli):
    cli.add_username_password(use_store=True)

    parser = cli.argparser

    subparsers = parser.add_subparsers()

    init_parser = subparsers.add_parser('init', description='Initialize the shrew system')
    init_parser.set_defaults(func=cmd_init)

    uninstall_parser = subparsers.add_parser('uninstall', description='Uninstall shrew system')
    uninstall_parser.set_defaults(func=cmd_uninstall)

    with cli.run():
        cli.args.func(cli.args)
