Skip to content

Commit

Permalink
doc: Include docs for initConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
CristhianMotoche committed Nov 20, 2023
1 parent a2aa3db commit 4220b46
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/System/Hapistrano.hs
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,16 @@ import qualified Data.Yaml as Yaml
import Numeric.Natural
import Path
import Path.IO
import qualified System.Directory as Directory
import System.Exit (exitFailure)
import qualified System.FilePath as FilePath
import System.Hapistrano.Commands
import System.Hapistrano.Config ( BuildCommand (..)
, CopyThing (..)
, ExecutionMode (..)
, deployStateFilename
)
import qualified System.Hapistrano.Config as HC
import System.Hapistrano.Config (BuildCommand (..), CopyThing (..),
ExecutionMode (..),
deployStateFilename)
import System.Hapistrano.Core
import System.Hapistrano.Types
import qualified System.Directory as Directory
import System.Exit (exitFailure)
import qualified System.FilePath as FilePath
import System.IO (stderr)
import Text.Read (readMaybe)

Expand Down Expand Up @@ -271,6 +269,9 @@ playScriptLocally cmds =
}) $
forM_ cmds $ flip execWithInheritStdout Nothing

-- | Create a file with an initial config file by getting information from the
-- user.

initConfig :: IO String -> IO ()
initConfig getLine' = do
configFilePath <- (FilePath.</> "hap.yml") <$> Directory.getCurrentDirectory
Expand Down

0 comments on commit 4220b46

Please sign in to comment.