U9: Add Sample via Command Line (without Command Line Arguments)¶
Description¶
Radio Host adds a sample to the system using the CLI, but without command line arguments.
Actor(s)¶
Radio Host
Precondition(s)¶
Sample is not in System
Postcondition(s)¶
Sample is in System
Steps¶
1) Radio host enters the command:
dmr add sample
2) System prompts user for the sample file.
3) User inputs the sample filename/filepath.
4) System prompts user for the sample title.
5) User inputs the sample title.
6) System records the sample locally and in the remote repository, and also tracks the date added.
Alternate¶
3) User inputs empty filename.
4) System displays "Cannot add file with no file name."
5) System exits gracefully.
3) User inputs nonexistent file.
4) System displays "Cannot find specified file."
5) System exits gracefully.
At any other point, if the user enters an empty value, the system enters the default value (empty string).