示例#1
0
 public void execute(Environment env, CommandLine cmd, ConsoleReader reader) {
   FileSystem hdfs = (FileSystem) env.getValue(Constants.HDFS);
   String wd = hdfs.getWorkingDirectory().toString();
   if (cmd.hasOption("l")) {
     log(cmd, wd);
   } else {
     log(cmd, wd.substring(env.getProperty(Constants.HDFS_URL).length()));
   }
   FSUtil.prompt(env);
 }