Last active
July 3, 2020 16:16
-
-
Save jinjagit/f3723e9da844585f84ee03a337b71d52 to your computer and use it in GitHub Desktop.
adds aliases to iex shell for liquidvoting AUTH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# adds aliases and imports a / some module(s) to iex shell for liquidvoiting AUTH | |
# rename to .iex.exs and place in AUTH project root | |
# for dev environment, not production - add to / don't remove from your local gitignore | |
# <alias ... as> used to avoid referencing other module with name equivalent to alias | |
import Ecto.Query | |
alias LiquidVotingAuth.Application, as: App | |
alias LiquidVotingAuth.{ | |
Organizations, | |
Release, | |
Repo | |
} | |
alias LiquidVotingAuth.Organizations.Organization | |
alias LiquidVotingAuthWeb.{ | |
AuthController, # AUTH/lib/liquid_voting_auth_web/controllers/ | |
Endpoint, | |
ErrorHelpers, # AUTH/lib/liquid_voting_auth_web/views/ | |
ErrorView, # AUTH/lib/liquid_voting_auth_web/views/ | |
LayoutView, # AUTH/lib/liquid_voting_auth_web/views/ | |
Telemetry, | |
Router, | |
UserSocket # AUTH/lib/liquid_voting_auth_web/channels/ | |
} | |
# LiquidVotingAuthWeb.Gettext not aliased | |
# no aliases defined for tests |
good idea. where are the comments? for example, can you link the comments for AUTH?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👌 would be good to link the gists to the repos they're meant to be added to, in the comments