GithubHelp home page GithubHelp logo

mklister's Introduction

MKLister

A command line tool for listing the contents of a directory.

Installation

This tool is written in Go. If you don't have Go installed on your machine yet, follow these instructions to get up and running: Go Installation Guide

Usage

MKLister supports the following CLI flags:

  • --help (prints help info)
  • --path=, -p= (the path to the directory, this is required)
  • --recursive, -r (when enabled, print contents recursively. defaults to false)
  • --output=, -o= (currently supports text, json, and yaml. defaults to text)

###Example Usage

$ mklister --path=/foo -r --output=json

###Example Response

[
 {
  "Name": "bar",
  "Size": 136,
  "ModifiedTime": "2016-07-19T19:14:38-04:00",
  "IsLink": false,
  "IsDir": true,
  "LinksTo": "",
  "Children": [
   {
    "Name": "afolder",
    "Size": 136,
    "ModifiedTime": "2016-07-19T19:14:38-04:00",
    "IsLink": false,
    "IsDir": true,
    "LinksTo": "",
    "Children": [
     {
      "Name": "file1",
      "Size": 0,
      "ModifiedTime": "2016-07-18T18:30:08-04:00",
      "IsLink": false,
      "IsDir": false,
      "LinksTo": "",
      "Children": null
     },
     {
      "Name": "file2",
      "Size": 0,
      "ModifiedTime": "2016-07-18T18:30:10-04:00",
      "IsLink": false,
      "IsDir": false,
      "LinksTo": "",
      "Children": null
     }
    ]
   },
   {
    "Name": "todo",
    "Size": 19,
    "ModifiedTime": "2016-07-18T18:31:57-04:00",
    "IsLink": true,
    "IsDir": false,
    "LinksTo": "/Users/MaxKohl/todo",
    "Children": null
   }
  ]
 },
 {
  "Name": "hello",
  "Size": 0,
  "ModifiedTime": "2016-07-18T18:29:57-04:00",
  "IsLink": false,
  "IsDir": false,
  "LinksTo": "",
  "Children": null
 }
]

mklister's People

Contributors

maxkohl88 avatar

Watchers

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