aboutsummaryrefslogtreecommitdiff
path: root/src/command/cd.cc
blob: 49b189959a07115f573425d370021ac45d3b3e9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

#include "command/builtin.h"

namespace ov4::command
{

using namespace std;

void cd(char **argv)
{
    if (argv == nullptr) return;
    if (argv[1] == nullptr) 
    {
        cout << "cd: requires path" << endl;
        return;
    }
    ov4::set_current_dir(argv[1]);
}

}