Copyright | (c) 2017-2020 Kowainik |
---|---|
License | MPL-2.0 |
Maintainer | Kowainik <xrom.xkov@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
Utilities to work with GitHub repositories using hub
.
Synopsis
- checkRemoteSync :: Branch -> IO Bool
- cloneRepo :: Maybe Owner -> IO ()
- createNewBranch :: Branch -> IO ()
- doesBranchExist :: Branch -> IO Bool
- insideRepo :: IO a -> IO a
- withSynced :: Branch -> IO a -> IO a
- copyLife :: CopyDirection -> LifeConfiguration -> IO ()
- addToRepo :: (Path Abs t -> Path Abs t -> IO ()) -> Path Rel t -> IO ()
- createRepository :: Maybe Owner -> Repo -> IO ()
- pullUpdateFromRepo :: LifeConfiguration -> IO ()
- removeFromRepo :: (Path Abs t -> IO ()) -> Path Rel t -> IO ()
- updateDotfilesRepo :: CommitMsg -> LifeConfiguration -> IO ()
- updateFromRepo :: LifeConfiguration -> IO ()
- getUserLogin :: IO Text
Repository utils
checkRemoteSync :: Branch -> IO Bool Source #
Returns true if local dotfiles
repository is synchronized with remote repo.
createNewBranch :: Branch -> IO () Source #
Create new branch with given branch name
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 :: Maybe 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 :: CommitMsg -> LifeConfiguration -> IO () Source #
updateFromRepo :: LifeConfiguration -> IO () Source #
getUserLogin :: IO Text Source #
Get user login from the local global git config.