Safe Haskell | None |
---|---|
Language | Haskell2010 |
Utilities to work with GitHub repositories using "hub".
Synopsis
- newtype Owner = Owner {}
- newtype Repo = Repo {}
- checkRemoteSync :: IO Bool
- cloneRepo :: Owner -> IO ()
- insideRepo :: IO a -> IO a
- withSynced :: IO a -> IO a
- data CopyDirection
- copyLife :: CopyDirection -> LifeConfiguration -> IO ()
- addToRepo :: (Path Abs t -> Path Abs t -> IO ()) -> Path Rel t -> IO ()
- createRepository :: Owner -> Repo -> IO ()
- pullUpdateFromRepo :: LifeConfiguration -> IO ()
- removeFromRepo :: (Path Abs t -> IO ()) -> Path Rel t -> IO ()
- updateDotfilesRepo :: Text -> LifeConfiguration -> IO ()
- updateFromRepo :: LifeConfiguration -> IO ()
Documentation
Repository utils
checkRemoteSync :: IO Bool Source #
Returns true if local dotfiles
repository is synchronized with remote repo.
withSynced :: IO a -> IO a Source #
Repository manipulation commands
copyLife :: CopyDirection -> LifeConfiguration -> IO () Source #
addToRepo :: (Path Abs t -> Path Abs t -> IO ()) -> Path Rel t -> IO () Source #
Adds file or directory to the repository and commits
createRepository :: Owner -> Repo -> IO () Source #
Creates repository on GitHub inside given folder.
pullUpdateFromRepo :: LifeConfiguration -> IO () Source #
removeFromRepo :: (Path Abs t -> IO ()) -> Path Rel t -> IO () Source #
Removes file or directory from the repository and commits
updateDotfilesRepo :: Text -> LifeConfiguration -> IO () Source #
updateFromRepo :: LifeConfiguration -> IO () Source #