ninit

Initialize a Nim package non-interactively (does not require nimble)

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version 1.0.3
License BSD
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:26

Authors

  • Via Stone

Installation

nimble install ninit
choosenim install ninit
git clone https://github.com/cypherwytch/ninit

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
ninit - - - - - - -

Dependencies

Package Version Optional
nim >= 2.0.0 No
shell - No
cligen - No
regex - No

Source

Repository https://github.com/cypherwytch/ninit
Homepage https://github.com/cypherwytch/ninit
Registry Source nimble_official

README

ninit

A non-interactive utility to initialize a nimble package. Provides the same functionality as nimble init, but is fully non-interactive and can be used in automation tasks. The generated packages should be (near-)identical to those generated by nimble itself.

The tool does not have a runtime dependency on nimble, so it can initialize packages without nimble being available. However, because it generates nimble packages, the generated packages themselves do require nimble in order to be built or tested.

CLI

Usage:
  main [optional-params] 
Options:
  -h, --help                                                   print this cligen-erated help
  --help-syntax                                                advanced: prepend,plurals,..
  -g, --git            bool    false                           set git
  -a=, --author=       string  "Anonymous"                     set author
  -b, --binary         bool    false                           set binary
  -l, --library        bool    false                           set library
  --license=           string  "MIT"                           set license
  -v=, --version=      string  "0.1.0"                         set version
  -n=, --nimversion=   string  ""                              set nimversion
  -d=, --description=  string  "A new awesome nimble package"  set description
  -p=, --package=      string  ""                              set package

Known issues

Does not currently support initializing an hg repository the way nimble does.