A peer-to-peer stack for code collaboration
Add more options for rad version command (#523)
Merle Breitkreuzb688487b7c2d
diff --git a/exe/Rad.hs b/exe/Rad.hsindex ee5584c..1647613 100644--- a/exe/Rad.hs+++ b/exe/Rad.hs@@ -28,7 +28,11 @@ runCommand [] = doputStrLn @Text "Available commands:"putStr $ T.unlines $ [" " <> T.pack c | c <- availableCommands]runCommand ("version":_) =- putStrLn ("radicle version " <> toS (showVersion version) :: Text)+ putStrLn radicleVersion+runCommand ("--version":_) =+ putStrLn radicleVersion+runCommand ("-v":_) =+ putStrLn radicleVersionrunCommand ("help":_) =runCommand []runCommand ("--help":_) =@@ -46,6 +50,10 @@ runCommand (name:args) = do, "is not a rad command. See 'rad help' for a list of available commands."]+-- | Returns the radicle version+radicleVersion :: Text+radicleVersion = "radicle version " <> toS (showVersion version) :: Text+-- | Built-in commands.builtinCommands :: [String]builtinCommands =