github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/kbfs/libfuse/platform_flags_non_osx.go (about) 1 // Copyright 2016 Keybase Inc. All rights reserved. 2 // Use of this source code is governed by a BSD 3 // license that can be found in the LICENSE file. 4 // 5 //go:build !darwin && !windows 6 // +build !darwin,!windows 7 8 package libfuse 9 10 import "flag" 11 12 // PlatformParams contains all platform-specific parameters to be 13 // passed to New{Default,Force}Mounter. 14 type PlatformParams struct{} 15 16 func (p PlatformParams) shouldAppendPlatformRootDirs() bool { 17 return false 18 } 19 20 // GetPlatformUsageString returns a string to be included in a usage 21 // string corresponding to the flags added by AddPlatformFlags. 22 func GetPlatformUsageString() string { 23 return "" 24 } 25 26 // AddPlatformFlags adds platform-specific flags to the given FlagSet 27 // and returns a PlatformParams object that will be filled in when the 28 // given FlagSet is parsed. 29 func AddPlatformFlags(flags *flag.FlagSet) *PlatformParams { 30 var params PlatformParams 31 return ¶ms 32 }