github.com/apptainer/singularity@v3.1.1+incompatible/cmd/internal/cli/cache_linux.go (about) 1 // Copyright (c) 2018-2019, 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 cli 7 8 import ( 9 "errors" 10 "github.com/spf13/cobra" 11 "github.com/sylabs/singularity/docs" 12 ) 13 14 func init() { 15 SingularityCmd.AddCommand(CacheCmd) 16 CacheCmd.AddCommand(CacheCleanCmd) 17 CacheCmd.AddCommand(CacheListCmd) 18 } 19 20 // CacheCmd : aka, `singularity cache` 21 var CacheCmd = &cobra.Command{ 22 RunE: func(cmd *cobra.Command, args []string) error { 23 return errors.New("Invalid command") 24 }, 25 DisableFlagsInUseLine: true, 26 27 Use: docs.CacheUse, 28 Short: docs.CacheShort, 29 Long: docs.CacheLong, 30 Example: docs.CacheExample, 31 SilenceErrors: true, 32 }