GithubHelp home page GithubHelp logo

emrecetin03 / nft Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dan-rds/nft

0.0 0.0 0.0 34 KB

NFT e.g. New From Template A helper script to quickly create files from a standard template.

Shell 6.02% Ruby 2.73% Python 78.37% C 8.68% Java 4.19%

nft's Introduction

NFT

A python script for quickly creating a New File form a Template

Installing

$ pip install nft

Running

Just like that, we should be in business. NFT works something like the touch command but instead of creating empty files, nft creates boilerplate files from the template. The first time you run nft, it will ask a few questions to better fill out the template. Try it out with something like:

$ nft test.java

Which created the following file:

/*-------------------------------------
test.java
temp_project
    by Daniel Richards ([email protected])
    Copyright © 2019 Daniel Richards. All rights reserved.
--------------------------------------*/

import java.util.*;
import java.lang.*;
import java.io.*;

public class test
{
        public static void main(String args[])
        {
                System.out.println("New Java file created from template");
        }
}

Other File Types

NFT can make the following kinds of source files:

  • C files and headers
  • Java
  • Python
  • Ruby
  • Shell (bash and Csh)

NFT can also build non-source files. The standard README types are included:

  • README (txt)
  • README.md (markdown)
  • README.rst (restructured text)

Any of these can be run as follows:

$ nft README.md

NOTE

If you want to reenter your name or email or recompile the list of templates (if you added a new template) use:

$ nft setup

Authors

License

See ./LICENSE

nft's People

Contributors

dan-rds avatar emrecetin03 avatar

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.