github.com/GuanceCloud/cliutils@v1.1.21/pipeline/ptinput/funcs/fn_exit.go (about) 1 // Unless explicitly stated otherwise all files in this repository are licensed 2 // under the MIT License. 3 // This product includes software developed at Guance Cloud (https://www.guance.com/). 4 // Copyright 2021-present Guance, Inc. 5 6 package funcs 7 8 import ( 9 "github.com/GuanceCloud/platypus/pkg/ast" 10 "github.com/GuanceCloud/platypus/pkg/engine/runtime" 11 "github.com/GuanceCloud/platypus/pkg/errchain" 12 ) 13 14 func ExitChecking(ctx *runtime.Task, node *ast.CallExpr) *errchain.PlError { 15 return nil 16 } 17 18 func Exit(ctx *runtime.Task, node *ast.CallExpr) *errchain.PlError { 19 ctx.SetExit() 20 return nil 21 }