sbbdep / src / cli / report.cpp

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
/*
--------------Copyright (c) 2010-2013 H a r a l d  A c h i t z---------------
-----------< h a r a l d dot a c h i t z at g m a i l dot c o m >------------
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-----------------------------------------------------------------------------
*/


#include "report.hpp"
#include "report_utils.hpp"

#include <sbbdep/log.hpp>
#include <sbbdep/pkgname.hpp>
#include <sbbdep/pkg.hpp>
#include <sbbdep/cache.hpp>
#include <sbbdep/elffile.hpp>
#include <sbbdep/cachesql.hpp>
#include <sbbdep/lddmap.hpp>

#include <a4sqlt3/sqlcommand.hpp>
#include <a4sqlt3/dataset.hpp>


#include <set>
#include <algorithm>
#include <tuple>
#include <iterator>


namespace sbbdep {
namespace cli{

//--------------------------------------------------------------------------------------------------

namespace
{
  using NotFoundMap = std::map<std::string, utils::StringSet>; // from file, so names
}



a4sqlt3::Dataset
getPkgsOfFile(const PathName& fname, int arch)
{
  using namespace a4sqlt3;
  const std::string cmdname = "getPkgsOfFilebyFile" ;
  SqlCommand* cmd = Cache::getInstance()->DB().getCommand(cmdname);
  if( cmd == nullptr )
    {
      std::string sql = R"~(
    SELECT fullname FROM pkgs INNER JOIN dynlinked ON pkgs.id = dynlinked.pkg_id
     WHERE dynlinked.filename=?  AND dynlinked.arch=? ; 
    )~";
      cmd = Cache::getInstance()->DB().createStoredCommand(cmdname, sql);
    }

  cmd->Parameters().setValues( { fname.Str(), arch }) ;

  Dataset ds;
  Cache::getInstance()->DB().Execute(cmd, ds);
  return ds;
}


//--------------------------------------------------------------------------------------------------

utils::ReportSet elfdeps(const PathName& fromfile, const ElfFile::StringVec& needed,
    int arch, const ElfFile::StringVec& rrnupaths)
{

  auto quote = [](const std::string val) -> std::string{
    return  std::string("'") + val + std::string("'") ;
  };



  auto quoterpath = [&fromfile, &quote](const std::string val) -> std::string{
    std::string pathname = CacheSQL::replaceORIGIN(val, fromfile.getDir());
    if(pathname.empty()) return "'no/where'";
    Path p(pathname);
    p.makeRealPath() ;
    return  quote(p.getURL()) ;
  };
  // TODO , check len  needed or sql , there is are SQLite limits

  std::string insonames = utils::joinToString(needed, ",", quote);
  std::string archstr = std::to_string( arch );
  std::string unionrunpath;

  if(not rrnupaths.empty())
    {
      std::string inrunpath = utils::joinToString(rrnupaths , ",", quoterpath);
      unionrunpath = " UNION SELECT lddir FROM rrunpath WHERE lddir IN (" + inrunpath + ") ";
    }

  /*
    SELECT pkgs.fullname as pkgname,  dynlinked.filename , dynlinked.soname
    FROM pkgs INNER JOIN dynlinked ON pkgs.id = dynlinked.pkg_id
    WHERE dynlinked.soname IN ( ... ) AND dynlinked.arch = ...
    AND  dynlinked.dirname IN (
      SELECT dirname FROM lddirs UNION SELECT dirname FROM ldlnkdirs
      UNION SELECT UNION SELECT lddir FROM rrunpath WHERE lddir IN ( ... ) // optional
      );
  */
  std::string sql= "SELECT pkgs.fullname as pkgname,  dynlinked.filename , dynlinked.soname,  " ;
  sql+= "'" + fromfile.Str() + "' as  requiredby" ;
  sql+=" FROM pkgs INNER JOIN dynlinked ON pkgs.id = dynlinked.pkg_id"
  " WHERE dynlinked.soname IN ( " ;
  sql+=insonames ;
  sql+= " ) AND dynlinked.arch = ";
  sql+= archstr ;
  sql+= " AND  dynlinked.dirname IN  " ;
  sql+= " ( SELECT dirname FROM lddirs UNION SELECT dirname FROM ldlnkdirs ";
  sql+= unionrunpath ;
  sql+= " );" ;


  utils::ReportSet ds{{}} ;
  Cache::getInstance()->DB().Execute(sql, ds) ;
  return ds;



}
//--------------------------------------------------------------------------------------------------

std::tuple<utils::ReportSet, NotFoundMap> // ds(pkgname, filename , soname) and NotFound
getRequiredInfosLDD(const Pkg& pkg)
{
  using namespace a4sqlt3;

  NotFoundMap not_found;

  utils::StringSet notFoundIgnore;
  if(pkg.getType() == PkgType::DestDir)
    {
        for(auto& f : pkg.getDynLinked())
          {
            if(f.soName()!="")
              notFoundIgnore.insert(f.soName());
          }
    }


  utils::ReportSet rs {{ "pkgname", "filename", "soname" , "requiredby" } };


  // for each elf file in dl I need to get the ld map (symbol -> file (possible link))
  // something to do for not founds ....
  // than the redundant stuff,
  // so -> need symbol -> file (list who needs this)
  // this will reduce the lookups...


  using SymFileLinkArch = std::tuple<std::string, std::string, int> ;

  SymFileLinkArch  sym_flnk_arch;

  // takes the sym, filelink, arch , and a list of files that need this ...
  std::map<SymFileLinkArch, utils::StringSet> ldsym_byfile;

  for(const ElfFile& elf : pkg.getDynLinked())
    {
      utils::StringMap ldmap = getLddMap(elf.getName()) ;

      utils::StringSet rem_so; // for delete an insert as problems
      for(auto so_needed : ldmap)
        { // is 'not found', but search for on "/"
          if( so_needed.second.find("/") == std::string::npos )
            {
              if( notFoundIgnore.find(so_needed.first) == notFoundIgnore.end() )
                rem_so.insert(so_needed.first); // bookmark for later delete from map
            }
        }

      if(not rem_so.empty())
        not_found.insert(NotFoundMap::value_type(elf.getName().Str(), rem_so));

      for(auto so : rem_so)
        ldmap.erase(so);

      if(ldmap.empty())
        continue;

      for(auto so_needed : ldmap)
        {
          sym_flnk_arch = std::make_tuple( so_needed.first, so_needed.second , elf.getArch() ) ;

          auto storepos = ldsym_byfile.find( sym_flnk_arch );

          if( storepos == ldsym_byfile.end())
            ldsym_byfile[sym_flnk_arch] = { elf.getName().Str() } ;
          else
            storepos->second.insert( elf.getName().Str() ) ;

        }

    }


  for(auto ldsym_files : ldsym_byfile )
    {

      const SymFileLinkArch & sfa = ldsym_files.first ;
      auto& sym = std::get<0>(sfa);
      auto& flnk = std::get<1>(sfa);
      const auto arch = std::get<2>(sfa);

      Path path(flnk);
      while( path.isLink() )
        path.makeRealPath();

      a4sqlt3::Dataset dspkgs = getPkgsOfFile( path, arch );

      //need  "pkgname", "filename", "soname" , "requiredby"
      for(auto pkgval : dspkgs)
        {
          for(auto f : ldsym_files.second)
          {

            DbValueList vals = {
            pkgval.getField(0) ,
            DbValue( path.getURL()), DbValue(sym) ,
            DbValue(f)
            };

          rs.addFields(vals);
            }
        }


    }

  return std::make_tuple(rs, not_found);

}




std::tuple<utils::ReportSet, NotFoundMap> // ds(pkgname, filename , soname) and NotFound
getRequiredInfos(const Pkg& pkg)
{

  using namespace a4sqlt3;

  utils::StringSet known_needed;

  NotFoundMap not_found;

  utils::StringSet notFoundIgnore;
  if(pkg.getType() == PkgType::DestDir)
    {
        for(auto& f : pkg.getDynLinked())
          {
            if(f.soName()!="")
              notFoundIgnore.insert(f.soName());
          }
    }




  utils::ReportSet rs {{ "pkgname", "filename", "soname" , "requiredby" } };

  for(const ElfFile& elf : pkg.getDynLinked())
    {

      utils::StringVec needed = elf.getNeeded();

      // but already looked up to the end
      auto knownbegin = std::remove_if(std::begin(needed), std::end(needed),
          [&known_needed](const std::string& val) ->bool
            {
              return known_needed.find(val) != known_needed.end();
            });

      if( needed.empty() )
        continue;
      else // remember already looked up
        known_needed.insert(knownbegin, needed.end());

      // if ldd option, than here the branch

      utils::ReportSet ds = elfdeps(elf.getName(), needed, elf.getArch(), elf.getRRunPaths());
      // pkgs.fullname as pkgname,  dynlinked.filename , dynlinked.soname

      // move found stuff to the end
      auto notfound_end = std::remove_if(std::begin(needed), std::end(needed),
          [&ds](const std::string& val) ->bool
            {
              for(auto& row : ds)
              if(row.getField(2).getString() == val )
              return true;

              return false;
            });

      // if something was not found, it's now at the begin
      utils::StringSet notFounds;

      auto nfiter = needed.begin();
      while(nfiter != notfound_end)
        {
          if(notFoundIgnore.find(*nfiter) == notFoundIgnore.end())
            notFounds.insert(*nfiter);
          ++nfiter;
        }



      if(not notFounds.empty())
          not_found.insert(NotFoundMap::value_type(elf.getName().Str(), notFounds));


      rs.merge(ds); // put this record to the report

    }

  return std::make_tuple(rs, not_found);

}
//--------------------------------------------------------------------------------------------------



void printRequired( const Pkg& pkg, bool addversion, bool xdl , bool ldd)
{

  std::tuple<utils::ReportSet, NotFoundMap> requiredinfo =
      ldd ? getRequiredInfosLDD(pkg) :   getRequiredInfos(pkg) ;

  utils::ReportTree reptree;

  //pkgname,  filename , soname
  utils::ReportSet& rs = std::get<0>(requiredinfo) ;
  NotFoundMap& notFounds = std::get<1>(requiredinfo) ;


  for(auto& row : rs)
    {
      if(xdl)
        {
        reptree.add( {row.getField(3).getString(),
          row.getField(2).getString(),
          row.getField(1).getString() ,
          row.getField(0).getString() } );
        }
      else
        {
          reptree.add( {
            row.getField(2).getString(),
            row.getField(1).getString() ,
            row.getField(0).getString() } );
        }
    }

  if( pkg.getType() == PkgType::BinLib )
    {
      a4sqlt3::Dataset ds = getPkgsOfFile( pkg.getPath(), pkg.getArch() ) ;
      Log::AppMessage() << "\n" ;
      Log::AppMessage() << "check " << pkg.getPath() ;
      Log::AppMessage() << ", " << pkg.getDynLinked().begin()->getArch() << "bit " ;
      if(pkg.getDynLinked().begin()->getType() == ElfFile::Binary)
        Log::AppMessage() << "binary " ;
      else if(pkg.getDynLinked().begin()->getType() == ElfFile::Library)
        Log::AppMessage() << "library (" << pkg.getDynLinked().begin()->soName()  << ")" ;

      Log::AppMessage() << std::endl ;

      if(ds.getRowCount()==0)
        {
          Log::AppMessage() << " .. not in a known package" << std::endl;
        }
      else
        {
          for(auto flds : ds)
            Log::AppMessage() << " .. from package " <<  flds.getField(0).getString() <<std::endl;

        }
      Log::AppMessage() << std::endl ;
    }

  auto makename = [addversion, xdl](const std::string val)
    {
      // in xdl mode, not using the slapt-get style of 'name >= version'
      if(xdl)
        {
          if(addversion)
            return val;

          return PkgName(val).Name();
        }

      PkgName pknam(val);
      std::string retval = pknam.Name();
      if (addversion) retval+= " >= " + pknam.Version();
      return retval;
      // TODO , think about give up this format and use the normal long version for all
      // or change it to = , see http://software.jaos.org/git/slapt-get/plain/FAQ.html#slgFAQ19

    };

  if( xdl )
    {
      for(auto requiredby_sos : reptree.node)
        {
          Log::AppMessage() << "file " << requiredby_sos.first << " needs:\n";
          for(auto so_files : requiredby_sos.second.node)
            {
              Log::AppMessage() << "  " << so_files.first << " found in:\n";
              for(auto file_pkgs : so_files.second.node)
                {
                  Log::AppMessage() << "    " << file_pkgs.first << "( "
                      << utils::joinToString(getKeySet(file_pkgs.second.node), " | ", makename)
                      << " )\n";
                }
            }
        }
    }
  else
    {
      utils::StringSet pkglist;
      std::string ignore_name ;
      if(pkg.getType() == PkgType::Installed)
        ignore_name = pkg.getPath().getBase();


      for(auto so_files: reptree.node) // filename so, just what the pkgs...
        {
          utils::StringSet pkgsofso;
          for(auto file_pkgs : so_files.second.node )
            {
              if(not ignore_name.empty() &&
                  file_pkgs.second.node.find(ignore_name) != file_pkgs.second.node.end() )
                { // avoid own package in the list
                  pkgsofso.clear();
                  break;
                }
              for (auto so_pkg : file_pkgs.second.node)
                pkgsofso.insert( so_pkg.first ) ;
            }

          if(not pkgsofso.empty())
            pkglist.insert( utils::joinToString(pkgsofso, " | ", makename ) ) ;
        }

      Log::AppMessage() << utils::joinToString(pkglist, addversion ? "\n" : ", " ) ;

    }
    Log::AppMessage() << std::endl;



    if(not notFounds.empty())
      {
        Log::AppMessage() <<std::endl;
        Log::AppMessage() << "sonames not found via " <<
            (ldd ? "ldd\n" : "standard paths: \n") ;

        for(auto val : notFounds){
            Log::AppMessage() << " for " << val.first << ": "<<utils::joinToString(val.second, ", ")
            << "\n" ;
        }

        Log::AppMessage() << "this does not necessarily mean there is a problem\n";
        if(not ldd)
          {
            Log::AppMessage() << "the application can either have its own environment or the soname is resolved via a link name \n" ;
            Log::AppMessage() << "you can re-check the affected files with --ldd \n" ;
          }
        else
          {
            Log::AppMessage() << "but it's very likely that there is one\n";
          }

        Log::AppMessage() << std::endl;
      }

    Log::AppMessage() << std::endl;
}





//--------------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------------
// from here whoneeds stuff, possible add this to own file
//--------------------------------------------------------------------------------------------------


std::string getWhoNeedFileQuery()
{
  return
  R"~(
  select pkgs.fullname as pkg, dynlinked.filename as filename , required.needed as soname , d2.filename as fromfile
   from  pkgs 
   inner join dynlinked on pkgs.id = dynlinked.pkg_id
   inner join required on dynlinked.id = required.dynlinked_id
  left join rrunpath on dynlinked.id = rrunpath.dynlinked_id 
  left join dynlinked d2 on required.needed = d2.soname 
   where  d2.arch = dynlinked.arch 
  AND 
  ( 
    ( rrunpath.lddir IS NOT NULL AND d2.dirname not in (  select distinct * from lddirs union select distinct * from ldlnkdirs )  and rrunpath.lddir = d2.dirname )
   OR 
    (
    d2.dirname in (  select distinct * from lddirs union select distinct * from ldlnkdirs ) 
    AND ( rrunpath.lddir IS  NULL OR rrunpath.lddir in (  select distinct * from lddirs union select distinct * from ldlnkdirs ) )
    )
  )
  AND d2.filename = ? 
  ;
  )~";
}

std::string
getWhoNeedPkgQuery()
{

  return R"~(
select pkgs.fullname as pkg, dynlinked.filename as filename , required.needed as soname , d2.filename as fromfile
 from  pkgs 
 inner join dynlinked on pkgs.id = dynlinked.pkg_id
 inner join required on dynlinked.id = required.dynlinked_id
left join rrunpath on dynlinked.id = rrunpath.dynlinked_id 
left join dynlinked d2 on required.needed = d2.soname 
inner join pkgs p2 on p2.id = d2.pkg_id
 where  d2.arch = dynlinked.arch 
AND 
( 
  ( rrunpath.lddir IS NOT NULL AND d2.dirname not in (  select distinct * from lddirs union select distinct * from ldlnkdirs )  and rrunpath.lddir = d2.dirname )
 OR 
  (
  d2.dirname in (  select distinct * from lddirs union select distinct * from ldlnkdirs ) 
  AND ( rrunpath.lddir IS  NULL OR rrunpath.lddir in (  select distinct * from lddirs union select distinct * from ldlnkdirs ) )
  )
)
AND p2.fullname  = ? 
;
)~";
}
//--------------------------------------------------------------------------------------------------




a4sqlt3::Dataset // { "pkg", "filename" , "soname", "fromfile" }
getWhoNeeds(const ElfFile& elf)
{
  using namespace a4sqlt3;

  Dataset ds;

  if( elf.getType() != ElfFile::Library )
    return ds;

  const std::string spname = "get_whoneed_file";
  SqlCommand* cmd = Cache::getInstance()->DB().getCommand(spname);
  if( cmd == nullptr )
    {
      cmd = Cache::getInstance()->DB().createStoredCommand(spname, getWhoNeedFileQuery());
    }

  cmd->Parameters().setValues({ elf.getName().Str() });

  Cache::getInstance()->DB().Execute(cmd, ds);
  return ds ;
}
//--------------------------------------------------------------------------------------------------


a4sqlt3::Dataset  // { "pkg", "filename" , "soname" , "fromfile" }
getWhoNeedsPkg(const std::string& name)
{

  using namespace a4sqlt3;

  const std::string spname = "get_whoneed_pkg";
  SqlCommand* cmd = Cache::getInstance()->DB().getCommand(spname);
  if( cmd == nullptr )
    { //select
      cmd = Cache::getInstance()->DB().createStoredCommand(spname, getWhoNeedPkgQuery());
    }

  cmd->Parameters().setValues({ name });

  Dataset ds;
  Cache::getInstance()->DB().Execute(cmd, ds);
  return ds ;

}
//--------------------------------------------------------------------------------------------------



void printWhoNeed( const Pkg& pkg, bool addversion, bool xdl )
{

  utils::ReportSet rs {{ "pkg", "filename" , "soname" , "fromfile"  } };


  if(pkg.getType() == PkgType::BinLib  )
    {
      if(pkg.getDynLinked().size()> 0) // should always be exact 1
        rs.merge ( getWhoNeeds( pkg.getDynLinked()[0]) ) ;
    }
  else if( pkg.getType() == PkgType::Installed)
    {
      rs.merge ( getWhoNeedsPkg(pkg.getPath().getBase()) ) ;
    }
  else
    return ;

  if(xdl)
    {
      utils::ReportTree reptree;
      for(auto& row : rs )
        {
          reptree.add( { row.getField(3).getString() + " (" + row.getField(2).getString() +")",
            row.getField(0).getString() ,
            row.getField(1).getString() } ) ;

        }

      std::function<void(utils::ReportElement, int)> printChild =
          [&printChild]( utils::ReportElement elem , int level ){
        for(auto node: elem.node){
           for(int i = 0; i < level; ++i)
             Log::AppMessage() << " " ;

           Log::AppMessage() << node.first << "\n";
          printChild(node.second, level+2);
        }
      };

      for( auto elem : reptree.node )
      {
        Log::AppMessage() << elem.first << " is used from:"<<std::endl;
        printChild(elem.second, 2) ;
      }
      Log::AppMessage() << std::endl;
      //printTree(reptree) ; // TODO, better format
    }
  else
    {
      utils::StringSet pkgnames ;
      for(auto& row : rs )
        {
          pkgnames.insert(addversion ?
              row.getField(0).getString() : PkgName(row.getField(0).getString()).Name() ) ;
        }

      Log::AppMessage()<< utils::joinToString( pkgnames, addversion ? "\n": ", " ) << std::endl ;
    }


}




//--------------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------------
}} // ns
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.