Added a simplistic command line.
From the command line, you can init the repository or add a file. Directories coming soon...
This commit is contained in:
parent
f8cdaf0a97
commit
7fa0fc6a7b
11 changed files with 246 additions and 35 deletions
17
include/ipfs/repo/init.h
Normal file
17
include/ipfs/repo/init.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
#pragma once
|
||||
|
||||
/***
|
||||
* Makes a new ipfs repository
|
||||
* @param path the path to the repository, should end
|
||||
* with .ipfs, and the directory should already exist.
|
||||
* @returns true(1) on success
|
||||
*/
|
||||
int make_ipfs_repository(const char* path);
|
||||
|
||||
/**
|
||||
* Initialize a repository, called from the command line
|
||||
* @param argc number of arguments
|
||||
* @param argv arguments
|
||||
* @returns true(1) on success
|
||||
*/
|
||||
int ipfs_repo_init(int argc, char** argv);
|
Loading…
Add table
Add a link
Reference in a new issue