Skip to content

Commit

Permalink
Add TravisCI integration
Browse files Browse the repository at this point in the history
  • Loading branch information
dubrowgn committed Jul 15, 2017
1 parent fd861c5 commit 2c23ec8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
language: rust
rust:
- stable
- beta
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# tcalc
A featureful calculator for when you want to do math in a terminal.

[![Build Status](https://travis-ci.org/dubrowgn/tcalc.svg?branch=master)](https://travis-ci.org/dubrowgn/tcalc)

## Usage
tcalc supports two modes of usage: terminal and REPL.

Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ fn repl() {
loop {
match rl.readline("> ") {
Ok(line) => {
rl.add_history_entry(&line);
rl.add_history_entry(line.as_str());
match parsing::parse(&line) {
Some(Ast::Command(Command::Exit)) => break,
Some(Ast::Expression(expr)) => {
Expand Down

0 comments on commit 2c23ec8

Please sign in to comment.