Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement --map option #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

erantapaa
Copy link

This patch implements the --map option so that you can use the predefined maps m1, m2, etc.
For example:

vindinium training {secret} --map m1 ...

@@ -23,6 +24,8 @@ import Data.Text (Text)
import Control.Monad.Reader (MonadReader, ReaderT, runReaderT, asks)
import Control.Monad.IO.Class (MonadIO)

type BoardId = String
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about using a Text based newtype ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be fine, too. I only needed to specify things like "--map m1" so I just reached for a String.

It seems that the REST API allows you to specify a complete custom map. If that is the case did you have any ideas on how that would be expressed via the command line options?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can specify the path to a file and/or read from the stdin.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, perhaps I was wrong about being able to send a custom map - will have to check with the devs. But if it is possible then reading it from a file or stdin would be a good option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants