Skip to content

Commit

Permalink
Moving Name Validation
Browse files Browse the repository at this point in the history
  • Loading branch information
devinmatte committed Aug 21, 2017
1 parent 6449dbc commit e501368
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions wasp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class Manifest:
self.details['related_applications'] = input("Related Applications " + str(on(["M"], args)) + ": ")
if self.details['related_applications'] == "":
self.details['related_applications'] = []
# TODO: Build full prompts for related applications

def display(self):
self.details['display'] = input(
Expand Down Expand Up @@ -169,6 +170,14 @@ def authors():
return author_val


def name():
name_val = input(
"Project/Software Name " + str(on(["M"], args)) + " (" + Colors.OKBLUE + directory[0:45] + Colors.ENDC + "): ")
if name_val == '':
name_val = directory[0:45]
return name_val


try:
parser = argparse.ArgumentParser(description='Process some integers.')
parser.add_argument('task', metavar='task', type=str, help='A task to perform. Options : init, update, tag')
Expand All @@ -183,10 +192,7 @@ try:

print("Thanks for using Wasp!\n")

details['name'] = input("Project/Software Name " + str(on(["M"], args)) + " (" + Colors.OKBLUE + directory[
0:45] + Colors.ENDC + "): ")
if details['name'] == '':
details['name'] = directory[0:45]
details['name'] = name()
details['description'] = input("Description " + str(on(["M"], args)) + ": ")
details['keywords'] = input("Keywords " + str(on([], args)) + ": ")
details['authors'] = authors()
Expand Down

0 comments on commit e501368

Please sign in to comment.