Skip to content

Instantly share code, notes, and snippets.

@jinjagit
Last active July 3, 2020 16:16
Show Gist options
  • Save jinjagit/f3723e9da844585f84ee03a337b71d52 to your computer and use it in GitHub Desktop.
Save jinjagit/f3723e9da844585f84ee03a337b71d52 to your computer and use it in GitHub Desktop.
adds aliases to iex shell for liquidvoting AUTH
# 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
@oliverbarnes
Copy link

👌 would be good to link the gists to the repos they're meant to be added to, in the comments

@jinjagit
Copy link
Author

jinjagit commented Jul 3, 2020

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