Giter Club home page Giter Club logo

filetree's Introduction

filetree Go

This program allows you to recursively find all the files and directories in a PATH and save the output as a YAML or JSON file.

Synopsis

walk command allows you to recursively find all the files and directories in a given location and export that information into either YAML or JSON format. It can be customized using either --json or --yaml. If you choose to include only a certain files in that walk you can provide the --contains flag. If you wish to remove extension from the output use --no-extn flag.By default the value is "true". if --dry-run flag is used to show the output on the console before checking out the file. --in and --out flags are used respectively to consume input and output path.

examples: a directory containing following file structure

sc
├── file.go
├── file_test.go
└── src
    ├── deploy
    │   ├── deploy.go
    │   └── deploy_test.go
    ├── pod.go
    └── pod_test.go

Command: filetree walk --outType=yaml --camel-case --no-extn --in=./sc --contains=_test --dry-run

sc:
  fileTest: "true"
  src:
    deploy:
      deployTest: "true"
     podTest: "true"
filetree walk [flags]

Options

      --camel-case        converts the file names against to camelcase from snake case
      --contains string   filters the output against the match
      --dry-run           prints output on console before not on file
  -h, --help              help for walk
      --in string         Path of the directory that you want to walk. (default "/Users/prashant/go/src/github.com/prashant182/filetree")
      --no-extn           removes the extension from the filename at the time of output
      --out string        output where you want to store JSON/YAML file. (default "/Users/prashant/go/src/github.com/prashant182/filetree")
      --outType string    Either json or yaml (default "yaml")

see docs for more info.

filetree's People

Contributors

prashant182 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.