about summary refs log tree commit diff
path: root/nix-repl.cc
AgeCommit message (Collapse)AuthorFilesLines
2013-09-09 printValue: Don't show lists/attribute sets twiceEelco Dolstra1-6/+26
2013-09-07 Improved value displayEelco Dolstra1-2/+116
By default, we don't recurse into attribute sets or lists when printing a value. However, the new :p command does recurse.
2013-09-06 Restore affinityEelco Dolstra1-7/+26
2013-09-06 Add basic variable name completionEelco Dolstra1-42/+87
2013-09-06 Load files specified on the command lineEelco Dolstra1-12/+24
For example: $ nix-repl '<nixpkgs>' '<nixos>' Welcome to Nix version 1.6pre3215_2c1ecf8. Type :? for help. Loading ‘<nixpkgs>’... Added 3337 variables. Loading ‘<nixos>’... Added 7 variables. nix-repl>
2013-09-06 Add a command :s to start a nix-shell for a derivationEelco Dolstra1-13/+21
2013-09-06 Add a command :b to build a derivationEelco Dolstra1-5/+26
2013-09-06 Don't exit on SIGINT during evaluationEelco Dolstra1-0/+3
However, this may leave thunks in black-holed state, so it's not really safe.
2013-09-06 Use readline history fileEelco Dolstra1-1/+7
2013-09-06 Handle SIGINT to cancel the current lineEelco Dolstra1-5/+37
2013-09-02 Add a command :l for loading a file into scopeEelco Dolstra1-10/+33
Example: nix-repl> :l <nixpkgs> nix-repl> lib.range 0 10 [ 0 1 2 3 4 5 6 7 8 9 10 ] nix-repl> :l <nixos> nix-repl> config.boot.kernelModules [ "vboxdrv" "vboxnetadp" ... ]
2013-09-02 Add a command :t for showing the type of an expressionEelco Dolstra1-4/+17
2013-09-02 Support adding variables to the scopeEelco Dolstra1-9/+86
The command ":a <expr>" evaluates <expr> and adds the attributes in the resulting attribute set to the interpreter scope. For instance: nix-repl> :a import <nixpkgs> {} nix-repl> lib.range 0 10 [ 0 1 2 3 4 5 6 7 8 9 10 ]
2013-09-02 Initial version of nix-replEelco Dolstra1-0/+57
This program interactively reads a Nix expression from the user, evaluates it, and prints the result.