beginnings of a config command
This commit is contained in:
		@@ -1,3 +1,4 @@
 | 
			
		||||
list print_bottles
 | 
			
		||||
active print_active_bottle
 | 
			
		||||
activate switch_active_bottle
 | 
			
		||||
config config_command
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										24
									
								
								src/bottles/config/cli_handler.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								src/bottles/config/cli_handler.cpp
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,24 @@
 | 
			
		||||
#include <string>
 | 
			
		||||
#include <vector>
 | 
			
		||||
 | 
			
		||||
#include "json.hpp"
 | 
			
		||||
 | 
			
		||||
#include "bottles.hpp"
 | 
			
		||||
#include "internal/bottles.hpp"
 | 
			
		||||
#include "output.hpp"
 | 
			
		||||
 | 
			
		||||
using namespace std;
 | 
			
		||||
using namespace cellar;
 | 
			
		||||
using namespace cellar::bottles;
 | 
			
		||||
 | 
			
		||||
using json = nlohmann::json;
 | 
			
		||||
 | 
			
		||||
void cellar::bottles::config_command(int argc, vector<string> argv) {
 | 
			
		||||
    if (argc == 1) {
 | 
			
		||||
        output::error("not enough arguments");
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
    string command = argv[1];
 | 
			
		||||
 | 
			
		||||
    output::statement(command);
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user