Documentation ¶
Overview ¶
Package exec is used for executing commands
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 ¶
- func Command(name string, arg ...string) *exec.Cmd
- func ComposeCommand(context ComposeCommandContext, command string, arg ...string) *exec.Cmd
- func RunCommand(options HandlerOptions, cmd *exec.Cmd) error
- func RunTTYCommand(options HandlerOptions, cmd *exec.Cmd)
- type ComposeCommandContext
- type HandlerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Command ¶
Command passes through to exec.Command for running generic commands
func ComposeCommand ¶
func ComposeCommand(context ComposeCommandContext, command string, arg ...string) *exec.Cmd
ComposeCommand gets a docker-compose command to run
func RunCommand ¶
func RunCommand(options HandlerOptions, cmd *exec.Cmd) error
RunCommand runs a command, handles verbose output and errors
func RunTTYCommand ¶
func RunTTYCommand(options HandlerOptions, cmd *exec.Cmd)
RunTTYCommand runs a command in an interactive shell
Types ¶
type ComposeCommandContext ¶
ComposeCommandContext ...