3 Star 0 Fork 1

Gitee 极速下载 / ntt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/nokia/ntt
克隆/下载
locate_file.go 466 Bytes
一键复制 编辑 原始数据 按行查看 历史
Matthias Simon 提交于 2022-09-11 10:42 . Simplify repository layout (#614)
package main
import (
"fmt"
"github.com/nokia/ntt/internal/fs"
"github.com/spf13/cobra"
)
var (
LocateFileCommand = &cobra.Command{
Use: "locate-file",
Short: "Locate a file using NTT_CACHE",
Hidden: true,
RunE: locate,
}
)
func locate(cmd *cobra.Command, args []string) error {
_, files := splitArgs(args, cmd.ArgsLenAtDash())
for _, path := range files {
if f := fs.Open(path); f != nil {
fmt.Println(f.Path())
}
}
return nil
}
1
https://gitee.com/mirrors/ntt.git
git@gitee.com:mirrors/ntt.git
mirrors
ntt
ntt
master

搜索帮助