subiquity/system_setup/client/client.py

49 lines
1.4 KiB
Python
Raw Normal View History

# Copyright 2021 Canonical, Ltd.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import logging
import sys
from subiquity.client.client import SubiquityClient
log = logging.getLogger('system_setup.client.client')
class SystemSetupClient(SubiquityClient):
2021-07-22 16:49:12 +00:00
from system_setup.client import controllers as controllers_mod
snapd_socket_path = None
variant = "wsl_setup"
cmdline = sys.argv
dryrun_cmdline_module = 'system_setup.cmd.tui'
controllers = [
"Welcome",
"WSLIdentity",
"WSLConfigurationBase",
"Summary",
]
variant_to_controllers = {
"wsl_setup": controllers,
"wsl_configuration": [
"WSLConfigurationBase",
"WSLConfigurationAdvanced",
"Summary",
]
}