func IsDisableAction(ctx context.Context) bool {
	return ctx.Value(disableAction{}) != nil
}
IsDisableAction is used to decide whether to disable PostAction and PostShell
package consts
import (
	"context"
	"time"
)
type debugMode struct{}
type dryRun struct{}
type ignoreDryRun struct{}
type disableAction struct{}
type perCommandTimeout struct{}
func GetContextWithPerCommandTimeout(ctx context.Context) (context.Context, context.CancelFunc) {
	val := ctx.Value(perCommandTimeout{})
	if val == nil {
		return ctx, func() {}
	}
	duration, ok := val.(time.Duration)
	if !ok {
		return ctx, func() {}
	}
	return context.WithTimeout(ctx, duration)
}
func WithPerCommandTimeout(ctx context.Context, timeout time.Duration) context.Context {
	return context.WithValue(ctx, perCommandTimeout{}, timeout)
}
func WithDebugMode(ctx context.Context) context.Context {
	return context.WithValue(ctx, debugMode{}, "true")
}
func WithIgnoreDryRun(ctx context.Context) context.Context {
	return context.WithValue(ctx, ignoreDryRun{}, "true")
}
func WithDisableAction(ctx context.Context) context.Context {
	return context.WithValue(ctx, disableAction{}, "true")
}
func WithDryRun(ctx context.Context) context.Context {
	ctx = WithDebugMode(ctx)
	return context.WithValue(ctx, dryRun{}, "true")
}
func IsDebugMode(ctx context.Context) bool {
	return ctx.Value(debugMode{}) != nil
}