gopkg.in/hugelgupf/u-root.v4@v4.0.0-20180831060141-1d761fb73d50/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 with all
     9  // matches and an error.
    10  type Completer interface {
    11  	Complete(s string) ([]string, error)
    12  }