From c61bf77de757804cd7ef5dc6b7d2fa7689a266a8 Mon Sep 17 00:00:00 2001 From: KtorZ Date: Fri, 4 Jan 2019 10:04:41 +0100 Subject: [PATCH] Move executables in a dedicated location And in the meantime, align name following a simple convention 'cardano-wallet-' --- {generate-swagger-file => app/generate-swagger}/Main.hs | 0 {generate-swagger-file => app/generate-swagger}/README.md | 0 {server => app/server}/Main.hs | 0 cardano-wallet.cabal | 8 ++++---- src/Cardano/Wallet/Server/CLI.hs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename {generate-swagger-file => app/generate-swagger}/Main.hs (100%) rename {generate-swagger-file => app/generate-swagger}/README.md (100%) rename {server => app/server}/Main.hs (100%) diff --git a/generate-swagger-file/Main.hs b/app/generate-swagger/Main.hs similarity index 100% rename from generate-swagger-file/Main.hs rename to app/generate-swagger/Main.hs diff --git a/generate-swagger-file/README.md b/app/generate-swagger/README.md similarity index 100% rename from generate-swagger-file/README.md rename to app/generate-swagger/README.md diff --git a/server/Main.hs b/app/server/Main.hs similarity index 100% rename from server/Main.hs rename to app/server/Main.hs diff --git a/cardano-wallet.cabal b/cardano-wallet.cabal index 4ef87b8e5..05bb8281d 100644 --- a/cardano-wallet.cabal +++ b/cardano-wallet.cabal @@ -266,7 +266,7 @@ library -executable cardano-node +executable cardano-wallet-server default-language: Haskell2010 default-extensions: @@ -300,12 +300,12 @@ executable cardano-node , universum hs-source-dirs: - server + app/server main-is: Main.hs -executable cardano-generate-swagger-file +executable cardano-wallet-generate-swagger default-language: Haskell2010 default-extensions: @@ -335,7 +335,7 @@ executable cardano-generate-swagger-file , universum >= 0.1.11 hs-source-dirs: - generate-swagger-file + app/generate-swagger main-is: Main.hs diff --git a/src/Cardano/Wallet/Server/CLI.hs b/src/Cardano/Wallet/Server/CLI.hs index 83bdf77d1..9ddc5fb5f 100644 --- a/src/Cardano/Wallet/Server/CLI.hs +++ b/src/Cardano/Wallet/Server/CLI.hs @@ -117,7 +117,7 @@ getWalletNodeOptions = execParser programInfo <> footerDoc CLI.usageExample versionOption = infoOption - ("cardano-node-" <> showVersion version <> + ("cardano-wallet-server-" <> showVersion version <> ", git revision " <> toString (ctiGitRevision compileInfo)) (long "version" <> help "Show version.")