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

feat: update cli interface to be more elixir based #53

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

Conversation

btkostner
Copy link
Owner

Need to dig into the Elixir cli a bit more and see if it's possible to pass in remote commands so I can make a cli that has commands like remote iex and remote migrate (remote + a cli command = running that command in remote)

@btkostner btkostner self-assigned this Apr 13, 2024
{:ok, %{rows: _rows}} ->
true

# We return true on failure to ensure we don't accidently delete

Choose a reason for hiding this comment

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

[misspell] reported by reviewdog 🐶
"accidently" is a misspelling of "accidentally"

seeds_file = Path.join([priv_dir, repo_underscore, "seeds.exs"])

if File.regular?(seeds_file) do
Code.eval_file(seeds_file)

Check warning

Code scanning / Sobelow

Code execution in eval function Warning

RCE.CodeModule: Code Execution in Code.eval\_file

@spec has_data?(module(), String.t(), String.t()) :: boolean()
defp has_data?(repo, schema, table) do
case Ecto.Adapters.SQL.query(repo, "SELECT * FROM #{schema}.#{table} LIMIT 1") do

Check warning

Code scanning / Sobelow

SQL injection Warning

SQL.Query: SQL injection
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.

None yet

1 participant