Git Product home page Git Product logo

zsh-sweep's Introduction

๐Ÿงฝ zsh-sweep

Usage: zsweep [--help/-h] [-C work-dir] [--auto] [--func]
                 [--script] [--src] [--dbg]
 
--help/-h        โ€“ this message 
-C work-dir      โ€“ like -C in Git โ€“ first cd to a dir 
--auto           โ€“ guess type of Zsh file 
--func           โ€“ set input file type to function 
--script         โ€“ set input file type to binary-script 
--src            โ€“ set input file type to sourced-script 
--dbg            โ€“ enable debug messages

Examples

Using is calling of zsweep binary on the wanted files to verify. It is good to specify type of file (command script, sourced script and autoload function, see above), however in practice one just passes --auto to autodetect the type.

To sweep a plugin.zsg file:

zsweep --auto zsh-sweep.plugin.zsh

To scan autoload functions of the project as example:

zsweep --auto functions/*(.)

To scan a command script of the project with CWD switch via -C option (CWD is for current working dir):

# -C โ€“ cd to the given dir
zsweep -C ~/github/zsh-sweep --auto bin/zsweep

Screenshots

screenshot

Installation

No plugin manager

    git clone https://github.com/psprint/zsh-sweep {CLONE-OUT-DIR}
    print 'zs_set_path=1' >> ~/.zshrc # add to $PATH
    print 'source {CLONE-OUT-DIR}/zsh-sweep.plugin.zsh' >> ~/.zshrc

Zinit

Without zinit-annex-bin-gem-node

zinit param'zs_set_path' for @psprint/zsh-sweep

With zinit-annex-bin-gem-node

zinit sbin'bin/zsweep' for @psprint/zsh-sweep

zsh-sweep's People

Contributors

arimal199 avatar psprint 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.