Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The fsctl is a configuration-based file operation and validation tool

License

NotificationsYou must be signed in to change notification settings

no-src/fsctl

Repository files navigation

BuildLicenseGo ReferenceGo Report CardcodecovRelease

English |简体中文

The fsctl is a configuration-based file operation and validation tool.

Installation

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

Run In Docker

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.

Quick Start

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.

For More Information

Help Info

$ fsctl -h

Version Info

$ fsctl -v

About Info

$ fsctl -about

About

The fsctl is a configuration-based file operation and validation tool

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp