Add JSON output to the `rbt attach` command.
This change adds JSON output to the `rbt attach` command.
Testing Done:
Ran unit tests.
Tested `rbt attach` with and without `--json`
Reviewed at
@@ -54,3 +54,5 @@ class Attach(Command):
self.stdout.write('Uploaded %s to review request %s.'
% (path_to_file, review_request_id))
+ self.json.add('attached_file', path_to_file)
+ self.json.add('review_request', review_request_id)
