- Notifications
You must be signed in to change notification settings - Fork0
The fsctl is a configuration-based file operation and validation tool
License
no-src/fsctl
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
English |简体中文
The fsctl is a configuration-based file operation and validation tool.
The first needGo installed (version 1.20+ is required), then you can use the belowcommand to installfsctl.
go install github.com/no-src/fsctl/...@latest
You can use thebuild-docker.sh script to build the docker image and you should clone thisrepository andcd to the root path of the repository first.
$ ./scripts/build-docker.sh
Or pull the docker image directly fromDockerHub with the command below.
$ docker pull nosrc/fsctl
For more scripts about release and docker, please see thescripts directory.
Create a config file namedfsctl.yaml, content is as follows
name:fsctl quick start exampleinit: -mkdir:source:./source -mkdir:source:./dest -print:input:init doneactions: -touch:source:./source/hello -echo:source:./source/helloinput:Hello Worldappend:false -cp:source:./source/hellodest:./dest/hello -is-equal:source:./source/hellodest:./dest/helloexpect:true -is-equal-text:source:./source/hellodest:| Hello Worldexpect:trueclear: -rm:source:./source -rm:source:./dest
Now running the command below start to opera and validate the files.
$ fsctl -conf fsctl.yaml
For more examples of thefsctl configuration, please see theexample directory.
$ fsctl -h
$ fsctl -v
$ fsctl -about
About
The fsctl is a configuration-based file operation and validation tool
Topics
Resources
License
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.