You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ask.go
    path of file: ./repos/cds/cli
    
    the code of the file until where you have to start completion: package cli

import (
	"fmt"
	"log"
	"strings"

	survey "gopkg.in/AlecAivazis/survey.v1"
)

// AskConfirm for confirmation on command line.
func AskConfirm(s string) bool {
	var result bool

	if err := survey.AskOne(&survey.Confirm{
		Message: s,
		Default: true,
	}, &result, nil); err != nil {
		log.Fatal(err)
	}

	re
    
func AskSelect(s string, opts ...string) []int {
	var results []string

	if err := survey.AskOne(&survey.MultiSelect{
		Message:  s,
		Options:  opts,
		PageSize: 10,
	}, &results, nil); err != nil {
		log.Fatal(err)
	}

	var choices []int
	for i := range opts {
		for j := range results {
			if opts[i] == results[j] {
				choices = append(choices, i)
			}
		}
	}

	return choices
}