update convey/clean to use the Runtime.ConfigPath instead of the working directory.
Fixes CONVEY-189
packagerunner
import(
"context"
"fmt"
"os"
"os/signal"
"path/filepath"
"syscall"
"time"
log"github.com/sirupsen/logrus"
"keep.imfreedom.org/grim/convey/config"
"keep.imfreedom.org/grim/convey/environment"
"keep.imfreedom.org/grim/convey/globals"
"keep.imfreedom.org/grim/convey/logging"
"keep.imfreedom.org/grim/convey/plans"
"keep.imfreedom.org/grim/convey/runtime"
)
typeRunnerCmdstruct{
ConfigFilestring`kong:"flag,help='The config file to load',placeholder='FILE',short='f',default='convey.yml'"`
ForceSequentialbool`kong:"flag,help='Force concurrent stages to be ran sequentially',short='S',default='false'"`
KeepWorkspacebool`kong:"flag,help='Keep the workspace directory after running',default='false'"`
Timeouttime.Duration`kong:"flag,help='The maximum amount of time a plan can run. 0 to disable. Units must be specified.',placeholder='DURATION',default='15m'"`
Environment[]string`kong:"flag,name='env',help='Set an environment variable',short='e',placeholder='ENV'"`
Plans[]string`kong:"arg,help='The names of the plans to run',default='default'"`