Skip to content

Commit

Permalink
Now you can type something in.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tech-FZ committed Apr 13, 2023
1 parent 197e79c commit 1a01b2c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# NShell Changelog

## Build 2

- Now you can type something in, but then it just says goodbye.

## Build 1

- Added build information
10 changes: 7 additions & 3 deletions main.cpp
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
#include <array>
#include <iostream>
#include <limits>
#include <span>

int buildNr = 1;
int buildNr = 2;

int main()
{
std::cout << "NShell" << '\n';
std::cout << "Build: " << buildNr << '\n';
std::cout << "Early prototype! Don't expect it to be useful." << '\n';

std::cout << "NShell > ";
std::string command_to_run;
std::cin >> command_to_run;

std::cout << "You would have run " << command_to_run << ". Thanks for testing. Goodbye.";

std::cin.clear();
std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
std::cin.get();
Expand Down

0 comments on commit 1a01b2c

Please sign in to comment.