My create new project simply (originaly in bash), in rust !

Overview

CNPS-Rust

CNPS (Create new project simply) is a powerful tool built in Rust that simplifies the process of creating projects in various programming languages. Currently, CNPS supports project generation for Rust, Python, Go, Assembly, lua, and HTML (with or without JavaScript). With CNPS, you can create new projects with ease, and it offers a range of customizable options to suit your workflow. Upon configuration, you can specify the target directory where your projects will be generated. Additionally, CNPS allows you to choose whether to organize your projects into subdirectories based on their respective programming languages. One of the key features of CNPS is its seamless integration with popular Integrated Development Environments (IDEs). During the setup, you get to select your preferred IDE from a list of supported options, such as Sublime Text or Visual Studio Code (for the moment). CNPS will automatically open your chosen IDE, ready for you to start working on your newly created project. For HTML projects, CNPS goes above and beyond by providing a fully-prepared HTML file and accompanying CSS file. The HTML file is pre-filled with a basic template, including essential tags. Additionally, if JavaScript was selected during configuration, the template will include a link to the script file in the body. This saves you valuable time, allowing you to jump straight into writing your web page's content and functionality. Moreover, CNPS offers a set of pre-designed layout templates for common use cases, such as a simple one-column layout, a responsive two-column layout, or a flexbox-based grid layout. These layout templates are included in the CSS file, making it effortless to structure and style your web page according to your preferences. CNPS also establishes the connection between the HTML and CSS files, ensuring they are linked correctly, so you can focus on crafting an aesthetically pleasing and functional web page. Furthermore, CNPS takes care of opening the newly created HTML file in your default web browser, enabling you to view your page instantly and streamline the development process. CNPS was previously implemented in Bash, but its transition to Rust brings numerous advantages, including improved performance, enhanced reliability, and a more maintainable codebase.

Features:

  • Create projects in multiple programming languages: Rust, Python, Go, Assembly, and HTML. (more will be added in the future)
  • Choose project directory and optional subdirectories based on language.
  • Seamless integration with popular IDEs like Sublime Text and Visual Studio Code. (more will be added in the future)
  • Automatic pre-filling of HTML and CSS templates for faster setup.
  • Pre-designed layout templates for easy styling of web pages.
  • Automatic connection between HTML and CSS files.
  • Automatic opening of the web page in your default browser for immediate preview.
  • Faster and more reliable than the previous Bash implementation.

Dependencies

For using cnps with rust:

sudo apt install cargo

For using cnps with go:

sudo apt install golang

You dont need to install anything for other languages.

Install

Download the deb package

Install it:

sudo dpkg -i cnps.deb

With the packag cnps.deb when you install it a .desktop application will be created as well as a personalized command "newp"

You might also like...
This project contains small exercises to get you used to reading and writing Rust code
This project contains small exercises to get you used to reading and writing Rust code

rustlings 🦀 ❤️ Greetings and welcome to rustlings. This project contains small exercises to get you used to reading and writing Rust code. This inclu

A project for developing Rust applications

rust_dev This is a project for developing Rust applications. The goal of this project is to provide a solid foundation for building robust and scalabl

A console viewer for trees – pet project to help me learn Rust.

treeviewer This is a pet project to help me learn Rust. But maybe it’ll end up being of actual use for someone? The idea is to write a program that, g

A learning project/fun experiment in internet protocol

Piper a learning project/fun experiment in internet protocol Version 0.4.0 (SEMVER) Goals Piper is Simple. A page is a page. There are no secondary re

 Gecko is a high-level, general-purpose programming language built on top of the LLVM project.
Gecko is a high-level, general-purpose programming language built on top of the LLVM project.

Gecko is a high-level, general-purpose programming language built on top of the LLVM project. Gecko Technology & principles Gecko is a general-purpose

Quickly set up a `probe-run` + `defmt` + `flip-link` embedded project

app-template Quickly set up a probe-run + defmt + flip-link embedded project Dependencies 1. flip-link: $ cargo install flip-link 2. probe-run: $ # ma

Elemental System Designs is an open source project to document system architecture design of popular apps and open source projects that we want to study
Elemental System Designs is an open source project to document system architecture design of popular apps and open source projects that we want to study

Elemental System Designs is an open source project to document system architecture design of popular apps and open source projects that we want to study

This repository serves as the backend for the Torrust Index project.
This repository serves as the backend for the Torrust Index project.

Torrust Index Backend 📢 Important Updates 📢 None at the moment ACCESS ALL UPDATES Index PROJECT DESCRIPTION PROJECT ROADMAP DOCUMENTATION INSTALLATI

Leetcode Solutions in Rust, Advent of Code Solutions in Rust and more

RUST GYM Rust Solutions Leetcode Solutions in Rust AdventOfCode Solutions in Rust This project demostrates how to create Data Structures and to implem

Releases(bug-correction)
Owner
Asteroidus
Asteroidus
Modern Rust utility library delivering modularity, performance & extras; or simply Rust version of Lodash

Lorust - API Documentation Lorust is the Rust version of Lodash, which is a modern Javascript utilty library delivering modularity, performance & extr

Imamuzzaki Abu Salam 2 Jul 9, 2023
Omeglib, a portmanteau of "omegle" and "library", is a crate for interacting with omegle, simply and asynchronously

Omeglib, a portmanteau of "omegle" and "library", is a crate for interacting with omegle, simply and asynchronously. It is intended to suit one's every requirement regarding chat on omegle.

null 1 May 25, 2022
A new blockchain architecture under active development, with a strong focus on scalability, privacy and safety

Project Slingshot Accelerating trajectory into interstellar space. Slingshot is a new blockchain architecture under active development, with a strong

Stellar 378 Dec 18, 2022
A tray application for Windows that gives you push notifications and instant downloads of new posts, messages and stories posted by models you subscribe to on Onlyfans.

OF-notifier A tray application for Windows that gives you push notifications and instant downloads of new posts, messages and stories posted by models

Gentlemen Mercenary 10 Dec 20, 2022
Moving to the new Arbiter framework to test Portfolio.

Stable Pool Simulation The simulation in this repository is intended to demonstrate a basic simulation created with the Arbiter framework. To do so, w

Primitive 6 Sep 15, 2023
A procedural macro to generate a new function implementation for your struct.

Impl New ?? A procedural macro to generate a new function implementation for your struct. ?? Add to your project Add this to your Cargo.toml: [depende

Mohammed Alotaibi 4 Sep 8, 2023
Use rust programming language to create a b+ tree.

Use rust programming language to create a b+ tree.

yangshijie 3 Jan 7, 2023
Create archives of files within Garry's Mod

gm_zip Create archives of files within Garry's Mod. Note: The scope of this module only works accross the gmod installation files e.g from GarrysMod/g

Earu 9 Oct 25, 2022
Simple CLI tool to create dummy accounts with referral links to give yourself free Plus.

Free Duolingo Plus A simple CLI tool to create dummy accounts with referral links to give yourself free Plus (max 24/41 weeks depending on whether you

null 23 Apr 27, 2023
Create custom ID types that are guaranteed to be valid `RecordID` in SurrealDB

surreal-id The surreal-id crate offers a standardized way to create and validate IDs in your application for usage with SurrealDB. Using the NewId tra

Liam Woodleigh-Hardinge 4 Oct 5, 2023