AGPL returns all AGPL commands including any non-core commands that are duplicated in the Enterprise CLI.
()
| 169 | // AGPL returns all AGPL commands including any non-core commands that are |
| 170 | // duplicated in the Enterprise CLI. |
| 171 | func (r *RootCmd) AGPL() []*serpent.Command { |
| 172 | all := append( |
| 173 | r.CoreSubcommands(), |
| 174 | r.Server( /* Do not import coderd here. */ nil), |
| 175 | r.Provisioners(), |
| 176 | ExperimentalCommand(r.AGPLExperimental()), |
| 177 | ) |
| 178 | return all |
| 179 | } |
| 180 | |
| 181 | // ExperimentalCommand creates an experimental command that is hidden and has |
| 182 | // the given subcommands. |