Skip to content

Commit

Permalink
glean clean-up
Browse files Browse the repository at this point in the history
Summary: we migrated glean out of eqwalizer, killing the code

Reviewed By: ilya-klyuchnikov

Differential Revision: D51891021

fbshipit-source-id: 9c95b5beb8e34185e410aa77801e3a6da0336767
  • Loading branch information
perehonchuk authored and facebook-github-bot committed Dec 12, 2023
1 parent ca720cc commit 090fc58
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions eqwalizer/src/main/scala/com/whatsapp/eqwalizer/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ object Main {
cmd match {
case "check" => check(args1, json)
case "ipc" => ipc(args1)
case "index" => gleanIndex(args)
case _ => help()
}
}
Expand Down Expand Up @@ -66,22 +65,13 @@ object Main {
}
}

private def gleanIndex(args: Array[String]): Unit = {
val path = args.lift(1).getOrElse("")
val indexerClass = Class.forName("com.whatsapp.eqwalizer.custom.GleanIndexer")
val indexer = indexerClass.getConstructor(classOf[String]).newInstance(path)
indexerClass.getDeclaredMethod("printIndex").invoke(indexer)
()
}

private def help(): Unit =
Console.print(helpText)

val helpText: String = {
"""com.whatsapp.eqwalizer.Main
|usage:
| check <module_name>
| index <module_name> <path from repo root to Erlang source directory>
|""".stripMargin
/* undocumented:
* `stats <module_name>` # stats for powering dashboards
Expand Down
1 change: 0 additions & 1 deletion eqwalizer/test_projects/_cli/help.cli
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
com.whatsapp.eqwalizer.Main
usage:
check <module_name>
index <module_name> <path from repo root to Erlang source directory>

0 comments on commit 090fc58

Please sign in to comment.