Add a base class for commands that provides wad and map arguments.
This commit is contained in:
parent
f8873e1947
commit
aff20e9557
6 changed files with 18 additions and 40 deletions
10
dcc/put.py
10
dcc/put.py
|
@ -1,14 +1,8 @@
|
|||
from cliff.command import Command
|
||||
import boto3
|
||||
import dcc.config
|
||||
import dcc.doom_base
|
||||
|
||||
class Put(Command):
|
||||
def get_parser(self, prog_name):
|
||||
parser = super().get_parser(prog_name)
|
||||
parser.add_argument('wad')
|
||||
parser.add_argument('map')
|
||||
return parser
|
||||
|
||||
class Put(dcc.doom_base.WadMap):
|
||||
# TODO: accept configuration for bucket name
|
||||
def take_action(self, parsed_args):
|
||||
s3_client = boto3.client('s3')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue