Console Dart: A package to help you create files and folders in your project with a single command.

Features

Console Dart: Create stateless and stateful widgets with a single command.

Getting started

Console Dart: List prerequisites and provide or point to information on how to start using the package.

Usage

Console Dart: List the steps needed to use the package.

Step 1: Add this to your package's pubspec.yaml file:

Step 2: Create a file in in root not in lib folder and name it console or any name you want. i suggest you to use console. don't need add .dart extension.

Step 3: Replace the content of the file with the following code:

import 'package:console_dart/console_dart.dart';

void main(List<String> arguments){
  load(arguments);
}

Step 4: How to run on terminal:

Usage: create_file options

Example: dart console -c my_widget -s, dart console -c my_widget -f console file iam using the name of the folder that i created in the root of my project. you can use any name you want.

dart console -c my_widget -s
dart console -c my_widget -f

dart console -c views/page/sample -s
dart console -c views/page/sample -f

For delete file

dart console -d my_widget
dart console -d views/page/sample

Additional information

Console Dart: If you want to contribute to this project, please contact me at: email

Libraries

console_dart