Documentation ¶
Overview ¶
Copyright 2021 The NitroCI Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021 The NitroCI Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021 The NitroCI Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021 The NitroCI Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func EnsureConfiguration() error
- func FindCurrentWorkspaceFile(workspaceDepth int) (file string)
- func FindGlobalConfig() (configPath string)
- func FindWorkspaceFiles() (workspaceFiles []string)
- func GetGlobalConfigString(profile string, key string) string
- func LoadWorkspaceFile(workspaceFile string) (*workspaces.WorkspaceModel, error)
- func PromptGlobalConfigKey(profile string, label string, secret bool) (bool, string)
- func PromptGlobalConfigKeyAndSave(profile string, label string, secret bool, key string, save bool) (bool, string)
- func SaveWorkspaceFile(workspaceModel *workspaces.WorkspaceModel, workspaceFile string)
- func SetGlobalConfigString(profile string, key string, value string)
Constants ¶
const ( WorkspaceFileFolder = ".nitroci" WorkspaceFileName = "workspace.yml" )
Variables ¶
This section is empty.
Functions ¶
func EnsureConfiguration ¶
func EnsureConfiguration() error
func FindGlobalConfig ¶
func FindGlobalConfig() (configPath string)
func FindWorkspaceFiles ¶
func FindWorkspaceFiles() (workspaceFiles []string)
func GetGlobalConfigString ¶
func LoadWorkspaceFile ¶
func LoadWorkspaceFile(workspaceFile string) (*workspaces.WorkspaceModel, error)
func PromptGlobalConfigKey ¶
func SaveWorkspaceFile ¶
func SaveWorkspaceFile(workspaceModel *workspaces.WorkspaceModel, workspaceFile string)
func SetGlobalConfigString ¶
Types ¶
This section is empty.