{"id":48270900,"url":"https://github.com/no-src/fsctl","last_synced_at":"2026-04-04T22:14:39.666Z","repository":{"id":143372893,"uuid":"615432899","full_name":"no-src/fsctl","owner":"no-src","description":"The fsctl is a configuration-based file operation and validation tool","archived":false,"fork":false,"pushed_at":"2025-09-05T07:04:45.000Z","size":81,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-05T09:11:20.094Z","etag":null,"topics":["file","go","testing-tools","validation"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/no-src.png","metadata":{"files":{"readme":"README-CN.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-03-17T17:21:35.000Z","updated_at":"2025-09-05T07:04:42.000Z","dependencies_parsed_at":"2023-11-16T05:25:25.817Z","dependency_job_id":"9c63ddba-a482-44a5-b6db-e1e3b9fbcb69","html_url":"https://github.com/no-src/fsctl","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/no-src/fsctl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/no-src%2Ffsctl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/no-src%2Ffsctl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/no-src%2Ffsctl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/no-src%2Ffsctl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/no-src","download_url":"https://codeload.github.com/no-src/fsctl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/no-src%2Ffsctl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31416761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["file","go","testing-tools","validation"],"created_at":"2026-04-04T22:14:37.571Z","updated_at":"2026-04-04T22:14:39.661Z","avatar_url":"https://github.com/no-src.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fsctl\n\n[![Build](https://img.shields.io/github/actions/workflow/status/no-src/fsctl/go.yml?branch=main)](https://github.com/no-src/fsctl/actions)\n[![License](https://img.shields.io/github/license/no-src/fsctl)](https://github.com/no-src/fsctl/blob/main/LICENSE)\n[![Go Reference](https://pkg.go.dev/badge/github.com/no-src/fsctl.svg)](https://pkg.go.dev/github.com/no-src/fsctl)\n[![Go Report Card](https://goreportcard.com/badge/github.com/no-src/fsctl)](https://goreportcard.com/report/github.com/no-src/fsctl)\n[![codecov](https://codecov.io/gh/no-src/fsctl/branch/main/graph/badge.svg?token=BTPKR8G6QI)](https://codecov.io/gh/no-src/fsctl)\n[![Release](https://img.shields.io/github/v/release/no-src/fsctl)](https://github.com/no-src/fsctl/releases)\n\n[English](README.md) | 简体中文\n\nfsctl是一种基于配置的文件操作和验证工具\n\n## 安装\n\n首先需要确保已经安装了[Go](https://golang.google.cn/doc/install) (**版本必须是1.20+**)，\n然后你就可以使用下面的命令来安装`fsctl`了\n\n```bash\ngo install github.com/no-src/fsctl/...@latest\n```\n\n### 在Docker中运行\n\n你可以使用[build-docker.sh](/scripts/build-docker.sh)脚本来构建docker镜像，首先你需要克隆本仓库并且`cd`到本仓库的根目录\n\n```bash\n$ ./scripts/build-docker.sh\n```\n\n或者使用以下命令直接从[DockerHub](https://hub.docker.com/r/nosrc/fsctl)中拉取docker镜像\n\n```bash\n$ docker pull nosrc/fsctl\n```\n\n更多关于发布与docker的脚本请参见[scripts](scripts)目录\n\n## 快速开始\n\n创建一个名为`fsctl.yaml`的配置文件，内容如下所示\n\n```yaml\nname: fsctl quick start example\ninit:\n  - mkdir:\n    source: ./source\n  - mkdir:\n    source: ./dest\n  - print:\n    input: init done\nactions:\n  - touch:\n    source: ./source/hello\n  - echo:\n    source: ./source/hello\n    input: Hello World\n    append: false\n  - cp:\n    source: ./source/hello\n    dest: ./dest/hello\n  - is-equal:\n    source: ./source/hello\n    dest: ./dest/hello\n    expect: true\n  - is-equal-text:\n    source: ./source/hello\n    dest: |\n      Hello World\n    expect: true\nclear:\n  - rm:\n    source: ./source\n  - rm:\n    source: ./dest\n```\n\n现在运行下面的命令就可以开始操作和验证文件了\n\n```bash\n$ fsctl -conf fsctl.yaml\n```\n\n更多`fsctl`的配置示例，请参见[example](/command/example)目录\n\n## 更多信息\n\n### 帮助信息\n\n```bash\n$ fsctl -h\n```\n\n### 版本信息\n\n```bash\n$ fsctl -v\n```\n\n### 关于信息\n\n```bash\n$ fsctl -about\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fno-src%2Ffsctl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fno-src%2Ffsctl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fno-src%2Ffsctl/lists"}