Giter Club home page Giter Club logo

shell2json's Introduction

shell2json

A very LIMITED script, just for using on my own.

A demo which tramsforms args in a deep learning shell script to launch.json of vscode for debugging.

Introduction

Some deep learning projects contain many args to parse for training and testing in different conditions, and they are usually writen in shell scripts. When I debug my deep learning projects in VSCode, it is a boring job to copy content of *.sh to ./.vscode/launch.json due to many quotation marks. So this demo is to solve this issue, automatically generating shell content to json format, which fits VSCode debugging.

Usage

class Configuration is used to generate a config.

  1. Intiialize it with file_name and path of the bash file.
  2. Run the method read() to read the bash file.
  3. Run the method exportJson() to return the content in json format.
  4. Copy and Complete VScode launch.json
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        // Paste the content generated by this demo here.
    ]
}

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.