rename `image destroy` to `image remove`, add compat options
ClosedPublic

Authored by kparal on Jul 15 2016, 8:47 AM.

Details

Summary

Similarly to 7c58f028f, where instance destroy got renamed to
instance remove, this does the same for image subparser, so that the
terminology is in sync between both subcommands. In order to keep
backwards compatibility, instance/image destroy is now still supported
in CLI, marked as deprecated. This also changes instance and image modules
API, keeping the destroy() methods, printing a deprecation warning and
recommending to use remove().

This is a follow-up of D931.

Test Plan

See testcloud instance -h and testcloud image -h. Try both destroy and remove. Try the API calls (at this very moment, libtaskotron still calls destroy).

Diff Detail

Repository
rTCLOUD testcloud
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kparal retitled this revision from to rename `image destroy` to `image remove`, add compat options.Jul 15 2016, 8:47 AM
kparal updated this object.
kparal edited the test plan for this revision. (Show Details)
kparal added reviewers: testcloud, mkrizek, tflink, lbrabec.
lbrabec accepted this revision.Jul 15 2016, 10:51 AM
This revision is now accepted and ready to land.Jul 15 2016, 10:51 AM
This revision was automatically updated to reflect the committed changes.