lib/kontena/cli/services/env_command.rb in kontena-cli-1.1.6 vs lib/kontena/cli/services/env_command.rb in kontena-cli-1.2.0.dev1
- old
+ new
@@ -1,12 +1,9 @@
module Kontena::Cli::Services
- require_relative 'envs/add_command'
- require_relative 'envs/list_command'
- require_relative 'envs/remove_command'
class EnvCommand < Kontena::Command
- subcommand ["list", "ls"], "List service environment variables", Envs::ListCommand
- subcommand "add", "Add environment variable", Envs::AddCommand
- subcommand ["remove", "rm"], "Remove environment variable", Envs::RemoveCommand
+ subcommand ["list", "ls"], "List service environment variables", load_subcommand('services/envs/list_command')
+ subcommand "add", "Add environment variable", load_subcommand('services/envs/add_command')
+ subcommand ["remove", "rm"], "Remove environment variable", load_subcommand('services/envs/remove_command')
end
end