|
Implements "juju actions <service>".
https://code.launchpad.net/~binary132/juju-core/skeletal_actions/+merge/216651
The client command "actions" queries against the service's charm, building a representation of the available actions from actions.yaml in the charm's root directory.
Actions themselves will be implemented as hooks in a future revision.
The actions.yaml spec is as follows:
actionspecs:
<an action name>:
description: "A description string for the action."
params:
<a param name>:
description: "A description string for the parameter."
type: (string|int|float|boolean)
default: <a default value>
<...more param names...>
<...more action names...>
Total comments: 25
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+606 lines, -28 lines) |
Patch |
 |
A |
[revision details]
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
charm/actions.go
|
View
|
|
1 chunk |
+135 lines, -0 lines |
12 comments
|
Download
|
 |
A |
charm/actions_test.go
|
View
|
|
1 chunk |
+92 lines, -0 lines |
0 comments
|
Download
|
 |
M |
charm/bundle.go
|
View
|
|
3 chunks |
+26 lines, -6 lines |
0 comments
|
Download
|
 |
M |
charm/bundle_test.go
|
View
|
|
2 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
charm/charm.go
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
charm/dir.go
|
View
|
|
3 chunks |
+23 lines, -4 lines |
1 comment
|
Download
|
 |
M |
charm/hooks/hooks.go
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
charm/meta_test.go
|
View
|
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
charm/repo_test.go
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
A |
cmd/juju/actions.go
|
View
|
|
1 chunk |
+68 lines, -0 lines |
4 comments
|
Download
|
 |
A |
cmd/juju/actions_test.go
|
View
|
|
1 chunk |
+69 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/api/client.go
|
View
|
|
2 chunks |
+16 lines, -0 lines |
1 comment
|
Download
|
 |
M |
state/api/params/params.go
|
View
|
|
1 chunk |
+13 lines, -0 lines |
1 comment
|
Download
|
 |
A |
state/apiserver/client/actions.go
|
View
|
|
1 chunk |
+51 lines, -0 lines |
2 comments
|
Download
|
 |
A |
state/apiserver/client/actions_test.go
|
View
|
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
 |
A |
state/apiserver/client/do_test.go
|
View
|
|
1 chunk |
+6 lines, -0 lines |
1 comment
|
Download
|
 |
M |
state/charm.go
|
View
|
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/state.go
|
View
|
|
2 chunks |
+2 lines, -0 lines |
2 comments
|
Download
|
 |
M |
store/store.go
|
View
|
|
6 chunks |
+25 lines, -15 lines |
0 comments
|
Download
|
 |
M |
store/store_test.go
|
View
|
|
1 chunk |
+4 lines, -0 lines |
1 comment
|
Download
|
 |
A |
testing/repo/quantal/dummy/actions.yaml
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
Total messages: 3
|