Skip to content

Commit

Permalink
adding print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemaster committed Jun 4, 2014
1 parent ab846cb commit 4f23824
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions libraries/api/types.json
Expand Up @@ -108,6 +108,10 @@
"cpp_include_file" : "string",
"default_example" : "alice"
},
{
"type_name" : "variant",
"cpp_return_type" : "fc::variant"
},
{
"type_name" : "wallet_name_array",
"container_type" : "array",
Expand Down
2 changes: 1 addition & 1 deletion libraries/api/wallet_api.json
Expand Up @@ -515,7 +515,7 @@
},
{
"name" : "data",
"type" : "json_variant",
"type" : "variant",
"description" : "arbitrary data attached to the asset",
"default_value" : null
},
Expand Down
8 changes: 5 additions & 3 deletions libraries/cli/cli.cpp
Expand Up @@ -62,14 +62,15 @@ namespace bts { namespace cli {

void parse_and_execute_interactive_command(string command,
fc::istream_ptr argument_stream )
{
{
fc::buffered_istream buffered_argument_stream(argument_stream);

bool command_is_valid = false;
fc::variants arguments;
try
{
arguments = _self->parse_interactive_command(buffered_argument_stream, command);
ilog( "command: ${c} ${a}", ("c",command)("a",arguments) );
command_is_valid = true;
}
catch( const fc::key_not_found_exception& )
Expand Down Expand Up @@ -108,7 +109,8 @@ namespace bts { namespace cli {
} //parse_and_execute_interactive_command

bool execute_command_line(const string& line)
{
{ try {
ilog( "${c}", ("c",line) );
string trimmed_line_to_parse(boost::algorithm::trim_copy(line));
if (!trimmed_line_to_parse.empty())
{
Expand Down Expand Up @@ -139,7 +141,7 @@ namespace bts { namespace cli {
}
} //end if command line not empty
return true;
}
} FC_RETHROW_EXCEPTIONS( warn, "", ("command",line) ) }

void process_commands()
{
Expand Down

0 comments on commit 4f23824

Please sign in to comment.