GithubHelp home page GithubHelp logo

moss-fmt's Introduction

moss-fmt

Build Status

Description

moss-fmt is an executable tool that searches a directory of zips and extracts only the specified files to a new directory, renaming them to identifiable names in the process. The main reason being formatting files for Moss.

Installation

Via Cargo (Recommended)

moss-fmt can be installed via Cargo, which comes with Rustup via:

cargo install moss-fmt

Manually building

You may manually build the source code using:

$ git clone https://github.com/CJohnson19/moss-fmt.git
$ cd moss-fmt
$ cargo build --release

The binary will then be in target/release/moss-fmt.

Usage

moss-fmt [FLAGS] [OPTIONS] --dir <dir> --filename <file>

Flags

  • -h, --help: print help information
  • -V, --version: print version number
  • -v, --verbose: print information about each operation performed

Options

  • -d, --dir: Relative path to a directory with zip files you want to search. Multiple directories may be provided.
  • -f, --filename: Filename to search for in each zip. Multiple file names can be provided.
  • --filter-dir: Folder to exclude from search in each zip. Defaults to __MACOSX and node_modules.
  • -o, --output: Directory to store resulting files. Defaults to current working directory.
  • -l, --log-file: File to store run information like zips without a file or files that are compressed using unsupported methods. Defaults to moss-fmt.log

Features

  • Renaming of files to individually identifiable names. index.js turns into johndoe-index.js.
  • No artifacts retained from the extraction process, only the files you want get removed.
  • Filtering of file's parent folders, that means no __MACOSX or node_modules to deal with.

moss-fmt's People

Contributors

cjohnson19 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.