Summary
Each script needs to be uniquely identified, so we can do things like make a route to view/edit the individual script - such as /scripts/3, which would be for script identified as 3. The name and command can change, but the Id never changes.
Implementation Details
In the Scripts interface in /models/script, add a field named id as an int for now. Update the InMemoryScripts created from #2 to each have an id, the first one starting at 1. So we know the Id is working, for now, when a script is copied to the clipboard, print "script [id] copied!".
Summary
Each script needs to be uniquely identified, so we can do things like make a route to view/edit the individual script - such as /scripts/3, which would be for script identified as 3. The name and command can change, but the Id never changes.
Implementation Details
In the Scripts interface in
/models/script, add a field namedidas an int for now. Update the InMemoryScripts created from #2 to each have an id, the first one starting at 1. So we know the Id is working, for now, when a script is copied to the clipboard, print"script [id] copied!".