#!/usr/bin/env python

from plumbum import cli
from baiji.package_version import __version__

class S3App(cli.Application):
    VERSION = __version__
    DESCRIPTION = "AWS S3 tool\nkeys are a kind of URL, of the form s3://BUCKET/PATH/TO/FILE"

S3App.subcommand("ls", "baiji.cli.ListCommand")
S3App.subcommand("restore", "baiji.cli.RestoreCommand")
S3App.subcommand("info", "baiji.cli.InfoCommand")
S3App.subcommand("rm", "baiji.cli.RemoveCommand")
S3App.subcommand("cp", "baiji.cli.CopyCommand")
S3App.subcommand("mv", "baiji.cli.MoveCommand")
S3App.subcommand("touch", "baiji.cli.TouchCommand")
S3App.subcommand("sync", "baiji.cli.SyncCommand")
S3App.subcommand("exists", "baiji.cli.ExistsCommand")
S3App.subcommand("url", "baiji.cli.URLCommand")
S3App.subcommand("md5", "baiji.cli.MD5Command")
S3App.subcommand("etag", "baiji.cli.EtagCommand")
S3App.subcommand("cat", "baiji.cli.CatCommand")
S3App.subcommand("buckets", "baiji.cli.BucketsCommand")
S3App.subcommand("version", "baiji.cli.VersionCommand")
S3App.subcommand("is", "baiji.cli.IsCommand")

if __name__ == '__main__':
    S3App.run()
