Documentation
¶
Overview ¶
Package config for interacting with the cli config
Copyright © 2020 Addshore ¶
This program is free software: you can redistribute it and/or modify it under the terms of the GNU 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 General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Package config for interacting with the cli config ¶
Copyright © 2020 Addshore ¶
This program is free software: you can redistribute it and/or modify it under the terms of the GNU 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 General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Index ¶
Constants ¶
const DevModeMwdd string = "docker"
DevModeMwdd value for DevMode that will use the docker/mediawiki-docker-dev command set
const UpdateChannelDev string = "dev-addshore"
UpdateChannelDev value for UpdateChannel that will pull updates from addshore's dev builds
const UpdateChannelStable string = "stable-wikimedia"
UpdateChannelStable value for UpdateChannel that will pull updates from wikimedia's stable builds
Variables ¶
var DevModeValues = AllowedOptions([]string{DevModeMwdd})
DevModeValues allowed values for DevMode
var UpdateChannelValues = AllowedOptions([]string{UpdateChannelDev, UpdateChannelStable})
UpdateChannelValues allowed values for UpdateChannel
Functions ¶
This section is empty.
Types ¶
type AllowedOptions ¶
type AllowedOptions []string
AllowedOptions representation of allowed options for a config value
func (AllowedOptions) Contains ¶
func (cao AllowedOptions) Contains(value string) bool
Contains do the allowed options contain this value