dcli
Search…
Introduction
What does DCli do?
Install DCli
Writing your first CLI app
Add DCli to your project
pub.dev
github
Dart basics
Dart lambda functions
Function Arguments
Futures
stdin/stdout/stderr a primer
Tour
Overview
Using DCli functions
User input
Displaying information
Managing Files And Directories
Environment variables
Calling apps
Command Line Arguments
Paths
Glob Expansion
Piping
Locking
Fetch
The evils of CD
Assets/Resources
Cross Platform
Elevated Privileges
Performance
Dependency Management
Dependency Management
Pubspec Managment
DCli Tools
DCli tools
Use a shebang #!
DCli Compile
DCli Clean
DCli Create
DCli Doctor
DCli Install
DCli Run
DCli Warmup
DCli Pack
Upgrade DCli
Internal Workings
Internal Workings
waitForEx
Contributing
References
Examples
Projects
Code
Articles
build CLI apps in dart - part 1
build CLI apps in dart - part 2
Dealing with permissions
Dart on Linux - the perfect CLI tooling
Improving your build environment
Olivier Revial - CLI apps made easy
Video: package of the week
Powered By
GitBook
Internal Workings
The DCli public API is almost 100% from of Dart Futures and async statements.
This is intentional as Futures provide almost no benefit in cli applications and actually make it harder to write cli apps.
The Dart api has a single function which can only be used on cli applications which is called 'waitFor'.
The 'waitFor' function essentially removes Futures.
DShell relies heavily on the 'waitFor' function to make writing cli apps easy.
DCli Tools - Previous
Upgrade DCli
Next - Internal Workings
waitForEx
Last modified
8mo ago
Copy link