Merge lp:~jameinel/juju-core/1.16-remove-service-1261628 into lp:juju-core/1.16

Proposed by John A Meinel
Status: Merged
Approved by: John A Meinel
Approved revision: no longer in the source branch.
Merged at revision: 2001
Proposed branch: lp:~jameinel/juju-core/1.16-remove-service-1261628
Merge into: lp:juju-core/1.16
Diff against target: 38 lines (+4/-1)
3 files modified
cmd/juju/destroymachine.go (+1/-1)
cmd/juju/destroyservice.go (+1/-0)
cmd/juju/main_test.go (+2/-0)
To merge this branch: bzr merge lp:~jameinel/juju-core/1.16-remove-service-1261628
Reviewer Review Type Date Requested Status
Juju Engineering Pending
Review via email: mp+199221@code.launchpad.net

Commit message

cmd/juju: alias remove-service and remove-machine

Part of bug #1261628, this lets us document 'remove-*' as the
preferred syntax for operations, since they aren't quite as "scary" as
'destroy-*'.

This is targetting 1.16 so that we can start documenting their use (in
a stable release). In trunk we could then actually rename the command
and have the old name as the alias. (So the command is
'remove-machine' with an alias of 'destroy-machine' for compatibility
purposes.)

https://codereview.appspot.com/40650048/

Description of the change

cmd/juju: alias remove-service and remove-machine

Part of bug #1261628, this lets us document 'remove-*' as the
preferred syntax for operations, since they aren't quite as "scary" as
'destroy-*'.

This is targetting 1.16 so that we can start documenting their use (in
a stable release). In trunk we could then actually rename the command
and have the old name as the alias. (So the command is
'remove-machine' with an alias of 'destroy-machine' for compatibility
purposes.)

https://codereview.appspot.com/40650048/

To post a comment you must log in.
Revision history for this message
John A Meinel (jameinel) wrote :

Reviewers: mp+199221_code.launchpad.net,

Message:
Please take a look.

Description:
cmd/juju: alias remove-service and remove-machine

Part of bug #1261628, this lets us document 'remove-*' as the
preferred syntax for operations, since they aren't quite as "scary" as
'destroy-*'.

This is targetting 1.16 so that we can start documenting their use (in
a stable release). In trunk we could then actually rename the command
and have the old name as the alias. (So the command is
'remove-machine' with an alias of 'destroy-machine' for compatibility
purposes.)

https://code.launchpad.net/~jameinel/juju-core/1.16-remove-service-1261628/+merge/199221

(do not edit description out of merge proposal)

Please review this at https://codereview.appspot.com/40650048/

Affected files (+6, -1 lines):
   A [revision details]
   M cmd/juju/destroymachine.go
   M cmd/juju/destroyservice.go
   M cmd/juju/main_test.go

Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: tarmac-20131212080047-vjisba431m6q5we8
+New revision: <email address hidden>

Index: cmd/juju/destroymachine.go
=== modified file 'cmd/juju/destroymachine.go'
--- cmd/juju/destroymachine.go 2013-11-27 12:14:31 +0000
+++ cmd/juju/destroymachine.go 2013-12-17 06:10:04 +0000
@@ -37,7 +37,7 @@
    Args: "<machine> ...",
    Purpose: "destroy machines",
    Doc: destroyMachineDoc,
- Aliases: []string{"terminate-machine"},
+ Aliases: []string{"remove-machine", "terminate-machine"},
   }
  }

Index: cmd/juju/destroyservice.go
=== modified file 'cmd/juju/destroyservice.go'
--- cmd/juju/destroyservice.go 2013-08-13 19:07:35 +0000
+++ cmd/juju/destroyservice.go 2013-12-17 06:10:04 +0000
@@ -25,6 +25,7 @@
    Args: "<service>",
    Purpose: "destroy a service",
    Doc: "Destroying a service will destroy all its units and
relations.",
+ Aliases: []string{"remove-service"},
   }
  }

Index: cmd/juju/main_test.go
=== modified file 'cmd/juju/main_test.go'
--- cmd/juju/main_test.go 2013-10-10 15:08:27 +0000
+++ cmd/juju/main_test.go 2013-12-17 06:10:04 +0000
@@ -240,7 +240,9 @@
   "help-tool",
   "init",
   "publish",
+ "remove-machine", // alias for destroy-machine
   "remove-relation", // alias for destroy-relation
+ "remove-service", // alias for destroy-service
   "remove-unit", // alias for destroy-unit
   "resolved",
   "scp",

Revision history for this message
Andrew Wilkins (axwalk) wrote :

On 2013/12/17 06:26:20, jameinel wrote:
> Please take a look.

LGTM

https://codereview.appspot.com/40650048/

Revision history for this message
Nick Veitch (evilnick) wrote :

+1

Revision history for this message
William Reade (fwereade) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'cmd/juju/destroymachine.go'
2--- cmd/juju/destroymachine.go 2013-11-27 12:14:31 +0000
3+++ cmd/juju/destroymachine.go 2013-12-17 06:25:00 +0000
4@@ -37,7 +37,7 @@
5 Args: "<machine> ...",
6 Purpose: "destroy machines",
7 Doc: destroyMachineDoc,
8- Aliases: []string{"terminate-machine"},
9+ Aliases: []string{"remove-machine", "terminate-machine"},
10 }
11 }
12
13
14=== modified file 'cmd/juju/destroyservice.go'
15--- cmd/juju/destroyservice.go 2013-08-13 19:07:35 +0000
16+++ cmd/juju/destroyservice.go 2013-12-17 06:25:00 +0000
17@@ -25,6 +25,7 @@
18 Args: "<service>",
19 Purpose: "destroy a service",
20 Doc: "Destroying a service will destroy all its units and relations.",
21+ Aliases: []string{"remove-service"},
22 }
23 }
24
25
26=== modified file 'cmd/juju/main_test.go'
27--- cmd/juju/main_test.go 2013-10-10 15:08:27 +0000
28+++ cmd/juju/main_test.go 2013-12-17 06:25:00 +0000
29@@ -240,7 +240,9 @@
30 "help-tool",
31 "init",
32 "publish",
33+ "remove-machine", // alias for destroy-machine
34 "remove-relation", // alias for destroy-relation
35+ "remove-service", // alias for destroy-service
36 "remove-unit", // alias for destroy-unit
37 "resolved",
38 "scp",

Subscribers

People subscribed via source and target branches

to all changes: