U6: Modify Song via Command Line (without Command Line Arguments)¶
Description¶
Radio Host modifies song information in the system using the CLI, but without command line arguments.
Actor(s)¶
Radio Host
Precondition(s)¶
Song has initial data
Postcondition(s)¶
Song has final data
Steps¶
1) Radio host enters the command:
dmr edit song
2) System prompts user for the song file.
3) User inputs the song filename/filepath.
4) System prompts user for the song title.
5) User inputs the song title.
6) System prompts the user for the song artist.
7) User inputs the song artist.
8) System prompts user for the song year.
9) User inputs the song year.
10) System modifies the song information locally and in the remote repository.
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).