// ExecContext calls Exec but with a specified context.Context.
ExecContext calls Exec but with a specified context.Context.
// ExecContext calls Exec but with a specified context . Context .
func ExecContext(ctx context.Context, cmd Function) {
	name := filepath.Base(os.Args[0])
	args := os.Args[1:]
	prog := NamedCommand(name, cmd)
	os.Exit(CallContext(ctx, prog, args...))
}
func ExecContext ( ctx context . Context , cmd Function ) { name := filepath . Base ( os . Args [ 0 ] ) args := os . Args [ 1 : ] prog := NamedCommand ( name , cmd ) os . Exit ( CallContext ( ctx , prog , args ... ) ) }
ExecContext calls Exec but with a specified context.Context.
ExecContext calls Exec but with a specified context . Context .