// HintAction registers a HintAction (function) for the arg to provide completions
188346
func (a *ArgClause) HintAction(action HintAction) *ArgClause {
	a.addHintAction(action)
	return a
}
255982
func (t *Transaction) sendAction(a *Action) error {
	switch a.kind {
	case commandAction:
		return t.conn.Send(a.name, a.args...)
	case scriptAction:
		return a.script.Send(t.conn, a.args...)
	}
	return nil
}
121169
func (s *JobDescription) SetAction(v string) *JobDescription {
	s.Action = &v
	return s
}
252899
func (c *Controller) SetAction(controllerName, methodName string) error {

	return c.SetTypeAction(controllerName, methodName, nil)
}
461771
func (s *Service) SetAction(v *Action) *Service {
	s.Action = v
	return s
}
1250393
func (s *SampledHTTPRequest) SetAction(v string) *SampledHTTPRequest {
	s.Action = &v
	return s
}
479705
func (s *ResourceChange) SetAction(v string) *ResourceChange {
	s.Action = &v
	return s
}
724694
func (s *XssMatchSetUpdate) SetAction(v string) *XssMatchSetUpdate {
	s.Action = &v
	return s
}
613015
func (u *UI) Hint(str string, noPadding bool, label *string) {
	if !u.EnableHints {
		return
	}

	if !Attached() {
		return
	}

	if !noPadding {
		fmt.Println()
	}

	hintLabel := u.BoldString("Protip: ")
	if label != nil {
		hintLabel = u.BoldString(*label)
	}
	rc := ansiwrap.RuneCount(hintLabel)
	fmt.Fprintln(readline.Stdout, ansiwrap.WrapIndent(hintLabel+str, u.Cols, u.Indent, u.Indent+rc))
}
576467
func (s *GeoMatchSetUpdate) SetAction(v string) *GeoMatchSetUpdate {
	s.Action = &v
	return s
}
458037
func ContextAction(ctx context.Context) string {
	if a := ctx.Value(actionKey); a != nil {
		return a.(string)
	}
	return "<unknown>"
}
958653
func (a *ArgClause) HintOptions(options ...string) *ArgClause {
	a.addHintAction(func() []string {
		return options
	})
	return a
}
98568
func (sca *SendChatAction) SetAction(act ChatAction) *SendChatAction {
	sca.Action = act
	return sca
}
713009
func (mod *CleverbotBee) Action(action bees.Action) []bees.Placeholder {
	outs := []bees.Placeholder{}

	switch action.Name {
	case "send_message":
		var text string
		action.Options.Bind("text", &text)

		resp, err := mod.client.Ask(text)
		if err != nil {
			mod.LogErrorf("Failed to ask cleverbot: %v", err)
			return nil
		}

		ev := bees.Event{
			Bee:  mod.Name(),
			Name: "answer",
			Options: []bees.Placeholder{
				{
					Name:  "answer",
					Type:  "string",
					Value: resp,
				},
			},
		}
		mod.evchan <- ev

	default:
		panic("Unknown action triggered in " + mod.Name() + ": " + action.Name)
	}

	return outs
}
564946
func helpAction(exitCode int) func(*Command, []string) {
	return func(cmd *Command, args []string) {
		cmd.Usage()
		os.Exit(exitCode)
	}
}
749058
func Hint(err error) error {
	if err == nil {
		return err
	}
	e, _ := url.PathUnescape(err.Error())
	if strings.Contains(err.Error(), defaults.SockPath) {
		return fmt.Errorf("%s\nIs the agent running?", e)
	}
	return fmt.Errorf("%s", e)
}
264184
func (s *ByteMatchSetUpdate) SetAction(v string) *ByteMatchSetUpdate {
	s.Action = &v
	return s
}