github.com/u-root/u-root@v7.0.1-0.20200915234505-ad7babab0a8e+incompatible/pkg/complete/types.go (about)

     1  // Copyright 2012-2018 the u-root Authors. All rights reserved
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package complete
     6  
     7  // Completer is an interface for completion functions.
     8  // It is passed a string and returns a string for an exact
     9  // match, a []string with all glob matches and an error.
    10  type Completer interface {
    11  	Complete(s string) (string, []string, error)
    12  }