Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
[#255] removed '-i' flag usages
Browse files Browse the repository at this point in the history
  • Loading branch information
avasyukhin committed Apr 17, 2019
1 parent 225d14f commit 6ea06ef
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 11 deletions.
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ psql:
-e PGPASSWORD=postgres \
postgres psql -h postgres -U postgres sourcesdb

# Create tables
.PHONY: tables
tables:
java -jar codesearch-core.jar -i

# Destroy Postgres
.PHONY: db-kill
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ Docker installed, you can do this:

$ make build # Build the project
$ make db # Download and start Postgres (wait a bit after this step)
$ make tables # Create tables
$ make serve # Run the server

If you head to <http://localhost:9000> now, you should see the project
Expand Down
4 changes: 0 additions & 4 deletions core/src/main/scala/codesearch/core/CLI.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ object CLI {
c.copy(downloadMeta = true)
} text "update package meta information"

opt[Unit]('i', "init-database") action { (_, c) =>
c.copy(initDB = true)
} text "create tables for database"

opt[Unit]('b', "build-index") action { (_, c) =>
c.copy(buildIndex = true)
} text "build index with only latest packages"
Expand Down
1 change: 0 additions & 1 deletion core/src/main/scala/codesearch/core/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ object Main extends IOApp {
final case class Params(
updatePackages: Boolean = false,
downloadMeta: Boolean = false,
initDB: Boolean = true,
buildIndex: Boolean = false,
limitedCountPackages: Option[Int] = None,
lang: String = "all"
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/codesearch/core/Program.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Program(langReps: Map[String, LangRep[_ <: DefaultTable]], logger: Logger[
logger.info(s"Codesearch-core started for language ${params.lang}")
}

_ <- initDb(params).whenA(params.initDB)
_ <- initDb(params)
_ <- downloadMeta(params).whenA(params.downloadMeta)
_ <- updatePackages(params).whenA(params.updatePackages)
_ <- buildIndex(params).whenA(params.buildIndex)
Expand Down

0 comments on commit 6ea06ef

Please sign in to comment.