@Override
	public boolean execute(final LineReader reader, final String[] parts, final SqlConfig sqlConfig,
			final Properties props) {
		PrintWriter writer = reader.getTerminal().writer();
		if (parts.length >= 2) {
			String sqlName = parts[1].replaceAll("\\.", "/");
			if (sqlConfig.getSqlManager().existSql(sqlName)) {
				String sql = sqlConfig.getSqlManager().getSql(sqlName);
				String[] sqlLines = sql.split("\\r\\n|\\r|\\n");
				for (String sqlLine : sqlLines) {
					writer.println(sqlLine);
				}
			} else {
				writer.println("SQL not found. sql=" + sqlName);
			}
		}
		writer.flush();
		return true;
	}
@ Override public boolean execute ( final LineReader reader , final String [ ] parts , final SqlConfig sqlConfig , final Properties props ) { PrintWriter writer = reader . getTerminal ( ) . writer ( ) ; if ( parts . length >= 2 ) { String sqlName = parts [ 1 ] . replaceAll ( "\\." , "/" ) ; if ( sqlConfig . getSqlManager ( ) . existSql ( sqlName ) ) { String sql = sqlConfig . getSqlManager ( ) . getSql ( sqlName ) ; String [ ] sqlLines = sql . split ( "\\r\\n|\\r|\\n" ) ; for ( String sqlLine : sqlLines ) { writer . println ( sqlLine ) ; } } else { writer . println ( "SQL not found. sql=" + sqlName ) ; } } writer . flush ( ) ; return true ; }
{@inheritDoc}

@see jp.co.future.uroborosql.client.command.ReplCommand#execute(org.jline.reader.LineReader, java.lang.String[], jp.co.future.uroborosql.config.SqlConfig, java.util.Properties)