from dumpster import Dumpster
import os

i = input('\r>')

if i == 'list':
    cwd = os.getcwd()
    lcd = os.listdir()
    dump = ''
    for file in lcd:
        if '.dmp' in file:
            dump+= ' '+file

    print(dump)

from dumpster import Dumpster
import os

running = True
selected = ''

while running:
    #cwd = os.getcwd()

    i = input('\r%s>'%(selected))

    if i == 'exit':
        running = False

    if i[0:6] == 'create':
        name = i[7:]
        Dumpster(name).write_to_dump()

    if i == 'list':
        if selected is 'none':    #list currrent working directory
            dirs = ''
            lcd = os.listdir()
            for file in lcd:
                if '.dmp' in file:
                    dirs+= ' '+file.strip('.dmp')
            print(dirs)

        else:                    #list selected dump
            #.......................................

    if i[0:6] == 'select':
        name = i[7:]
        selected = name

Select and Create and List
Select and Create and List
