Giter Club home page Giter Club logo

hinit's People

Contributors

poscat0x04 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

hinit's Issues

strict upper bounds

I have temp-fixed the build in nixpkgs with a jailbreak. These are the bounds, that can be loosened:

       > Configuring hinit-0.2.2...
       >
       > Setup: Encountered missing or private dependencies:
       > Cabal >=3.2.0 && <3.3,
       > mustache >=2.3.1 && <2.4,
       > parser-combinators >=1.2.1 && <1.3,
       > path-io >=1.6.2 && <1.7

Support reading templates from other sources

Currently, HI relies on the file system to read templates. We should support reading templates from other sources, such as tar files as well. A proper way of achieving this that I can think of is to design a generic template format that can be plugged into different backends.

Weird behaviour when a text option doesn't have a default value

When including an option in template.toml without a default: field, with type: set to text, I'm prompted for a Bool.

Steps to reproduce

  1. Create a new template with 2 files:
# bug-test/template.toml
desc = "Template to test interactive bug"
ignores = []
tags = []

[[options]]
type = "text"
name = "myfield"
# bug-test/file.txt
{{ myfield }}
  1. Run hinit
$ hi init bug-test bug-test
Please input the value of option
    myfield : Bool
(y/n)> 

This is weird, we're being prompted for a Bool even though we specified myfield is a text. Also:

  1. Enter Y or N
Please input the value of option
    myfield : Bool
(y/n)> y
Error: failed to substitute the contents of file file.txt:
  • DirectlyRenderedValue False

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.