Skip to content

Trigger-45/json-script-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json-script-generator

C++ CMake Platform License

A C++ CLI tool that converts a constrained JSON configuration into executable startup scripts.

The project currently generates Windows batch scripts (.bat) and is being extended to support shell scripts (.sh) as an additional target.

About This Project

This project was originally developed as a university assignment and later published into a new repository with small adjustments. It is now being continued as a private project out of personal interest.

Features

  • Internal JSON parser (no external JSON library required)
  • Script generation from structured JSON input
  • Current target: Windows batch (.bat)
  • Planned target: POSIX shell (.sh)
  • CLI interface with help/version/example options

Requirements

  • C++ Standard: C++20
  • CMake: 3.10+
  • Compiler: GCC, Clang, or MSVC with C++20 support

Build

mkdir build
cd build
cmake ..
make

Usage

./jsondemo [options] <config.json>

Show help:

./jsondemo -h

Roadmap

  • Add --target bat|sh output selection
  • Add shell-safe escaping for .sh output
  • Improve input validation and error reporting

License

Licensed under the MIT License. See LICENSE for details.

About

C++ tool that automatically generates script files from JSON configuration data, built with CMake for cross-platform compatibility.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors