cellar/src/cellar.cpp

22 lines
392 B
C++
Raw Normal View History

2017-03-12 22:33:42 -07:00
#include <cstdlib>
2017-03-12 17:13:07 -07:00
#include <iostream>
#include <string>
2017-03-12 22:33:42 -07:00
#include <vector>
2017-03-12 17:13:07 -07:00
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
2017-03-12 22:33:42 -07:00
#include "fs.hpp"
2017-03-12 17:13:07 -07:00
2017-03-12 22:33:42 -07:00
using namespace std;
2017-03-12 17:13:07 -07:00
2017-03-12 22:33:42 -07:00
int main(int argc, char* argv[]) {
vector<string> homedir = cellar::fs::listdir(getenv("HOME"));
for (string item : homedir) {
cout << item;
cout << " ";
}
cout << endl;
2017-03-12 17:13:07 -07:00
return 0;
2017-03-12 15:43:11 -07:00
}