Browse code
feat(stack): add sketch of "open console for stack"
Ed Langley authored on 23/12/2019 21:03:08
Showing 1 changed files
Showing 1 changed files
... | ... |
@@ -32,6 +32,13 @@ |
32 | 32 |
:adjust :left |
33 | 33 |
:width (character ,(max (+ (length type) 5) col2))))) |
34 | 34 |
|
35 |
+;; doesn't work, seems to cause segfaults, but would be a cool feature :( |
|
36 |
+(defun go-to-console (interface stack) |
|
37 |
+ (with-pp (interface) |
|
38 |
+ (mfa-tool::open-url |
|
39 |
+ (format nil "https://us-west-2.console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/stackinfo?stackId=~a" |
|
40 |
+ (quri:url-encode (daydreamer.aws-result:stack-id stack)))))) |
|
41 |
+ |
|
35 | 42 |
(capi:define-interface stack-interface (capi:interface mfa-tool.stack-store:stack-store) |
36 | 43 |
() |
37 | 44 |
(:panes |
... | ... |
@@ -59,6 +66,13 @@ |
59 | 66 |
:callback-type :interface |
60 | 67 |
:callback (lambda (store) |
61 | 68 |
(mfa-tool.store:dispatch store :refresh))) |
69 |
+ #+(or) |
|
70 |
+ (open-web-console capi:push-button |
|
71 |
+ :text "Open" |
|
72 |
+ :callback-type :interface |
|
73 |
+ :callback (lambda (store) |
|
74 |
+ (go-to-console |
|
75 |
+ (mfa-tool.stack-store:selected-stack store)))) |
|
62 | 76 |
(status-display capi:display-pane |
63 | 77 |
:background :transparent |
64 | 78 |
:reader status-display |