cacheDir=flag.String("cachedir","","if non-empty, use this directory to store cached size results to speed up subsequent runs. The tool does not consider the git status when deciding whether to use the cache. It's on you to nuke it between runs if the tree changed.")
features=flag.String("features","","comma-separated list of features to consider, with or without the ts_omit_ prefix")
showRemovals=flag.Bool("show-removals",false,"if true, show a table of sizes removing one feature at a time from the full set")
)
funcmain(){
@ -31,7 +33,9 @@ func main() {
varall[]string
if*features==""{
fork:=rangefeaturetags.Features{
all=append(all,"ts_omit_"+k)
ifk.IsOmittable(){
all=append(all,k.OmitTag())
}
}
}else{
forv:=rangestrings.SplitSeq(*features,","){
@ -49,27 +53,30 @@ func main() {
baseC:=measure("tailscale")
baseBoth:=measure("tailscaled","ts_include_cli")
fmt.Printf("(a) starting with everything and removing a feature...\n\n")