github.com/apptainer/singularity@v3.1.1+incompatible/cmd/bash_completion/bash_completion.go (about)

     1  // Copyright (c) 2018, Sylabs Inc. All rights reserved.
     2  // This software is licensed under a 3-clause BSD license. Please consult the
     3  // LICENSE.md file distributed with the sources of this project regarding your
     4  // rights to use or distribute this software.
     5  
     6  package main
     7  
     8  import (
     9  	"fmt"
    10  	"os"
    11  
    12  	"github.com/sylabs/singularity/cmd/internal/cli"
    13  )
    14  
    15  func main() {
    16  	if err := cli.SingularityCmd.GenBashCompletionFile(os.Args[1]); err != nil {
    17  		fmt.Println(err)
    18  		return
    19  	}
    20  }