in ibazel/ibazel.go [380:403]
func (i *IBazel) setupRun(target string) command.Command {
rule, err := i.queryRule(target)
if err != nil {
log.Errorf("Error: %v", err)
}
i.targetDecider(target, rule)
commandNotify := false
for _, attr := range rule.Attribute {
if *attr.Name == "tags" && *attr.Type == blaze_query.Attribute_STRING_LIST {
if contains(attr.StringListValue, "ibazel_notify_changes") {
commandNotify = true
}
}
}
if commandNotify {
log.Logf("Launching with notifications")
return commandNotifyCommand(i.startupArgs, i.bazelArgs, target, i.args)
} else {
return commandDefaultCommand(i.startupArgs, i.bazelArgs, target, i.args)
}
}