| 117 | |
| 118 | impl LambdaSubcommand { |
| 119 | async fn run( |
| 120 | self, |
| 121 | color: &str, |
| 122 | global: Option<PathBuf>, |
| 123 | context: Option<String>, |
| 124 | admerge: bool, |
| 125 | ) -> Result<()> { |
| 126 | match self { |
| 127 | Self::Build(b) => Self::run_build(b, global, context, admerge).await, |
| 128 | Self::Deploy(d) => Self::run_deploy(d, global, context, admerge).await, |
| 129 | Self::Init(mut i) => i.run().await, |
| 130 | Self::Invoke(i) => i.run().await, |
| 131 | Self::New(mut n) => n.run().await, |
| 132 | Self::System(s) => Self::run_system(s, global, context, admerge).await, |
| 133 | Self::Watch(w) => Self::run_watch(w, color, global, context, admerge).await, |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | async fn run_build( |
| 138 | build: Build, |