* sshrimp-agent and sshrimp-ca building and deploying. * mage build system working. * successful deploy and SSH to host. * need to tidy up and add tests.
21 lines
395 B
Go
21 lines
395 B
Go
package agent
|
|
|
|
import (
|
|
"github.com/magefile/mage/sh"
|
|
)
|
|
|
|
// Build Builds the local ssh agent
|
|
func Build() error {
|
|
return sh.Run("go", "build", "./cmd/sshrimp-agent")
|
|
}
|
|
|
|
// Clean Cleans the output files for sshrimp-agent
|
|
func Clean() error {
|
|
return sh.Rm("sshrimp-agent")
|
|
}
|
|
|
|
// Install Installs the sshrimp-agent
|
|
func Install() error {
|
|
return sh.Run("go", "install", "./cmd/sshrimp-agent")
|
|
}
|