# frozen_string_literal: true require_relative "../base" module Neetob class CLI module Local class Ls < Base attr_accessor :sandbox, :apps, :dir def initialize(apps, dir, sandbox = false) super() @apps = apps @dir = dir @sandbox = sandbox end def run matching_apps = find_all_matching_apps(apps, :github, sandbox, true) matching_apps.each do |app| app_name = app.split("/")[1] ui.info("\nListing files from #{app_name}/#{dir}\n") ui.info(`cd ./#{app_name} && ls #{dir}`) end end end end end end