public void cat(CommandSession session, String[] args) throws Exception { if (args.length == 0) { copy(System.in, System.out); return; } URI cwd = Shell.cwd(session); for (String arg : args) { copy(cwd.resolve(arg), System.out); } }
public void cat(CommandSession session, String[] args) throws Exception { if (args.length == 0) { copy(System.in, System.out); return; } URI cwd = Shell.cwd(session); for (String arg : args) { copy(cwd.resolve(arg), System.out); } }
public void cat(CommandSession session, String[] args) throws Exception { if (args.length == 0) { copy(System.in, System.out); return; } URI cwd = Shell.cwd(session); for (String arg : args) { copy(cwd.resolve(arg), System.out); } }
public void cat(CommandSession session, String[] args) throws Exception { if (args.length == 0) { copy(System.in, System.out); return; } URI cwd = Shell.cwd(session); for (String arg : args) { copy(cwd.resolve(arg), System.out); } }
public Object source(CommandSession session, String script) throws Exception { URI uri = cwd(session).resolve(script); session.put("0", uri); try { return session.execute(readScript(uri)); } finally { session.put("0", null); // API doesn't support remove } }
public Object source(CommandSession session, String script) throws Exception { URI uri = cwd(session).resolve(script); session.put("0", uri); try { return session.execute(readScript(uri)); } finally { session.put("0", null); // API doesn't support remove } }
public Object source(CommandSession session, String script) throws Exception { URI uri = cwd(session).resolve(script); session.put("0", uri); try { return session.execute(readScript(uri)); } finally { session.put("0", null); // API doesn't support remove } }
public Object source(CommandSession session, String script) throws Exception { URI uri = cwd(session).resolve(script); session.put("0", uri); try { return session.execute(readScript(uri)); } finally { session.put("0", null); // API doesn't support remove } }
File file = new File(Shell.cwd(session).resolve(path)); fw = new BufferedWriter(new FileWriter(file, opt.isSet("append")));
File file = new File(Shell.cwd(session).resolve(path)); fw = new BufferedWriter(new FileWriter(file, opt.isSet("append")));
File file = new File(Shell.cwd(session).resolve(path)); fw = new BufferedWriter(new FileWriter(file, opt.isSet("append")));
File file = new File(Shell.cwd(session).resolve(path)); fw = new BufferedWriter(new FileWriter(file, opt.isSet("append")));
URI cwd = Shell.cwd(session); in = (arg == null) ? System.in : cwd.resolve(arg).toURL().openStream();
URI cwd = Shell.cwd(session); in = (arg == null) ? System.in : cwd.resolve(arg).toURL().openStream();
URI cwd = Shell.cwd(session); in = (arg == null) ? System.in : cwd.resolve(arg).toURL().openStream();
URI cwd = Shell.cwd(session); in = (arg == null) ? System.in : cwd.resolve(arg).toURL().openStream();
URI script = cwd(session).resolve(args.remove(0));
URI script = cwd(session).resolve(args.remove(0));
URI script = cwd(session).resolve(args.remove(0));
URI script = cwd(session).resolve(args.remove(0));