// Copyright GoFrame Author(https://goframe.org). All Rights Reserved. // // This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT was not distributed with this file, // You can obtain one at https://github.com/gogf/gf. package main import ( "context" "github.com/gogf/gf/v2/frame/g" "github.com/gogf/gf/v2/os/gcmd" "github.com/gogf/gf/v2/os/gctx" ) var ( Sub = &gcmd.Command{ Name: "sub", Brief: "sub process", Func: func(ctx context.Context, parser *gcmd.Parser) (err error) { g.Log().Debug(ctx, `this is sub process`) return nil }, } ) func main() { Sub.Run(gctx.GetInitCtx()) }