
com.qiniu.entry.EntryMain Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qsuits Show documentation
Show all versions of qsuits Show documentation
qiniu-suits is a efficient tools for qiniu api implemented by java8.
package com.qiniu.entry;
import com.qiniu.datasource.IDataSource;
import com.qiniu.datasource.InputSource;
import com.qiniu.interfaces.ILineProcess;
import com.qiniu.util.ParamsUtils;
import com.qiniu.util.ProcessUtils;
import java.util.Map;
import java.util.Scanner;
public class EntryMain {
public static boolean process_verify = true;
@SuppressWarnings("unchecked")
public static void main(String[] args) throws Exception {
boolean single = false;
boolean interactive = false;
for (int i = 0; i < args.length; i++) {
if (args[i].matches("-f")) {
args[i] = "-verify=false";
process_verify = false;
} else if (args[i].matches("-(s|-single|-single=true|line=.?)")) {
args[i] = "-single=true";
single = true;
} else if (args[i].matches("-(i|-interactive|-interactive=true)")) {
args[i] = "-interactive=true";
interactive = true;
}
}
QSuitsEntry qSuitsEntry = single ? new QSuitsEntry(ParamsUtils.toParamsMap(args)) : new QSuitsEntry(args);
ILineProcess
© 2015 - 2025 Weber Informatics LLC | Privacy Policy