Skip to content
/ lson Public

A command line program written in go to output directory structure in JSON format.

License

Notifications You must be signed in to change notification settings

Alex979/lson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lson

A command line program written in go to output directory structure in JSON format.

Installation

go get github.com/Alex979/lson

Usage

$ lson --help
Usage:
  lson [file] [flags]

Flags:
  -h, --help      help for lson
      --version   version for lson

Examples

$ lson dir1
{
  "name": "dir1",
  "type": "directory",
  "size": 29,
  "children": [
    {
      "name": "dir2",
      "type": "directory",
      "size": 17,
      "children": [
        {
          "name": "resume.pdf",
          "type": "file",
          "size": 17
        }
      ]
    },
    {
      "name": "hello.txt",
      "type": "file",
      "size": 6
    },
    {
      "name": "world.sh",
      "type": "file",
      "size": 6
    }
  ]
}

About

A command line program written in go to output directory structure in JSON format.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages