Documentation ¶
Overview ¶
SPDX-License-Identifier: Apache-2.0
Copyright © 2023 The listen.dev team <engineering@garnet.ai>
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 ¶
- func CopyExecutable(src, dst string) error
- func CopyFile(src, dst string) error
- func EnvSetter(envs map[string]string) (closer func())
- func ExecuteCommand(root *cobra.Command, cmdline ...string) (string, string, error)
- func MockHTTPServer(assert *assert.Assertions, path string, resp []byte, status int, ...) *httptest.Server
- func StringsReplaceAll(slice []string, with string) []string
- func StubNpm(npm NPM) error
- func WriteFileContent(fs billy.Filesystem, path string, fileContent string, executable bool) error
- type NPM
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyExecutable ¶
func ExecuteCommand ¶ added in v0.4.0
func MockHTTPServer ¶
func StringsReplaceAll ¶ added in v0.12.1
Types ¶
Click to show internal directories.
Click to hide internal directories.