Skip to main content

Crate nifty_cli

Crate nifty_cli 

Source
Expand description

The Nifty command-line tool, nf.

Modulesยง

build ๐Ÿ”’
nf build: check the app, compile it to machine code, and package it as a native app for an operating system.
check ๐Ÿ”’
nf check: report errors without running anything.
create ๐Ÿ”’
nf create <name>: start a new app from the starter template.
dev ๐Ÿ”’
nf dev: run the app and reload it in place every time one of its source files is saved. State the new version still declares with the same name and type keeps its value.
error ๐Ÿ”’
frontend ๐Ÿ”’
Reading a project and turning it into a checked program, shared by every command.
lsp ๐Ÿ”’
nf lsp: the language server editors start to check and navigate nifty code.
project ๐Ÿ”’
What a command operates on: a project folder with a main.nf, or a single .nf file.
report ๐Ÿ”’
Renders diagnostics as annotated source snippets on stderr.
run ๐Ÿ”’
nf run: check the app, then run it with native windows.

Constantsยง

EXIT_HAS_ERRORS ๐Ÿ”’
The program has errors, found while checking it or while it ran.
EXIT_USAGE ๐Ÿ”’
USAGE ๐Ÿ”’

Functionsยง

finish ๐Ÿ”’
nf
Runs nf with its command-line arguments, without the program name.

Type Aliasesยง

CommandResult ๐Ÿ”’
Result of a command: the exit code to return, or an error that stopped it.