Skip to content

Initialise a C++ repository with just one command (And a little bit of setup)

Notifications You must be signed in to change notification settings

Renjian-buchai/cinitpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cinitpp

Initialise your C++ projects easily with cinitpp!

Table of contents

License

Copyright © 2023 Contributors

This project is licensed under the Apache license. View LICENSE for more details.

Documentation

JSON config format:

[
  {
    "Path": "./path/to/file.txt", 
    "Contents": "contents"
  }, 
  // ...
]

Usage

To initialise, use the following command:

cinitpp

To force an initialisation even when the current directory is not empty, use the following command:

cinitpp -F

To generate a config file, use the following command:

cinitpp -I <INPUT DIRECTORY>

Note, the directory MUST follow IMMEDIATELY AFTER the flag -I.

Usage of -I and -F will ignore -F.

Future plans

  • Making it configurable
  • Making it save the configuration

Build instructions

Dependencies

  • Nlohmann-json

Building

You can use the makefile as reference. TLDR:

  • Standard = C++17
  • Source = src/main.cc main.exe
  • Additional include paths =
  • If possible, -Wall -Wextra -Werror (Though I wouldn't mind if there were warnings, I'd still attempt to correct them, so to save time, it'd be best to use all warnings)

About

Initialise a C++ repository with just one command (And a little bit of setup)

Topics

Resources

Stars

Watchers

Forks