// currentStep returns the current step we are on
currentStep returns the current step we are on
// currentStep returns the current step we are on
func (r *Register) currentStep() string {
	if r.first == RegStep("") {
		return ""
	}
	steps, ok := r.steps[r.first]
	if !ok {
		return "unknown"
	}
	for i, s := range r.steps[r.first] {
		if r.current == s {
			return fmt.Sprintf("%d", i)
		}
	}
	glog.Errorf("%q was not found within the registered steps for %q: %v", r.current, r.first, steps)
	return ""
}
func ( r * Register ) currentStep ( ) string { if r . first == RegStep ( " " ) { return " " } steps , ok := r . steps [ r . first ] if ! ok { return " " } for i , s := range r . steps [ r . first ] { if r . current == s { return fmt . Sprintf ( " " , i ) } } glog . Errorf ( " " , r . current , r . first , steps ) return " " }
currentStep returns the current step we are on
currentStep returns the current step we are on
// all steps should be registered so this shouldn't happen // can't call exit.WithError as it creates an import dependency loop