Safe Haskell | None |
---|---|
Language | Haskell2010 |
Logic for CLI commands to make GitHub workflows easier.
Synopsis
- runHop :: Maybe Text -> IO ()
- runFresh :: Maybe Text -> IO ()
- runNew :: Int -> IO ()
- runPush :: Bool -> IO ()
- runResolve :: Maybe Text -> IO ()
- runCommit :: Text -> Bool -> IO ()
- runFix :: Maybe Text -> IO ()
- runAmend :: IO ()
- runSync :: IO ()
- runCurrent :: IO (Maybe Int)
- runClone :: Text -> IO ()
- getUsername :: IO Text
Documentation
runCurrent :: IO (Maybe Int) Source #
Part of the hit current
command. Prints the current branch and returns
the current issue number if possible.
runClone :: Text -> IO () Source #
hit clone
command receives the name of the repo in the following
formats:
reponame
— current user's username is used to clone the repo from.name/reponame
— specified GitHub username is used to clone the repo from.
Note that the ssh
strategy is used for cloning from GitHub. See the corresponding git
command:
git clone git@github.com:username/project-name.git
getUsername :: IO Text Source #
Get current user name from the local global git config.