Skip to main content

Speed up creation of repositories from templates

Project description

Skorovarka

Skorovarka takes a template project and prompts you to fill in the gaps via command line. It prepares the most basic files for you, so you don't need to fill everything out manually. It is compatible with two types of syntax:

  • ${1:label} or $1 -> the VSCode snippets syntax
  • |||1:label||| or |||1||| -> because it's rare that a triple pipe is an actual syntactical feature of any language and thus is more resistant to situations where the ${} notation might not be suitable (e.g. Bash scripts).

Usage

  1. Run skvk cook --input "./Python" --output "./MyProj".
  2. Fill in the values when you're asked.

Recipe file

A recipie file contains hints on what the fields being filled in actually mean. This file is optional but when you provide it, it should be in the form of:

tox.ini:
  - Resources File YAML Path
  - Coverage options and adapter to run tests with
ALLOWED_EXTENSIONS:
  - all

All-caps fields are obligatory to be present.

  • ALLOWED_EXTENSIONS -> optionally constrains the extensions being considered by the tool. If the first element of the list is all (or ALL or aLL, casing doesn't matter), all extensions will be allowed.

Remaining fields are Unix-style paths relative to the template folder directory (passed with -i flag), e.g. if tox.ini existed under tests, it should be named in the YAML: tests/tox.ini. Please don't use ugly Windows slashes in paths at least not in the recipe file.

Any future configuration will be extended via the recipe YAML.

To use the recipe file, provide a path to it via --recipe flag.

To Do

[] Recipe modification -> skvk recipe file.txt 4 -> changes label on tag 4 in file.txt.

Caveats

  • The tool doesn't support mixed-line-ending scenario. You either have a CRLF or an LF file. Period.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

skorovarka-1.0.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file skorovarka-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: skorovarka-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for skorovarka-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50921c5bfece7015a95da21bcbdbfcc87bf505e5d5ccd7102d20fab1e51f778a
MD5 ab69594da10d73f0e79be83dfbf514d5
BLAKE2b-256 ce03dbf8f1ad1b7be7e9c306aee4ec555d3761ca6e18f0d9ad7cbae24e1bef34

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page