 
   defp load_mix_exs() do
     file = System.get_env("MIX_EXS") || "mix.exs"
-    _ = if File.regular?(file) do
-      Code.load_file(file)
-    end
+
+    _ =
+      if File.regular?(file) do
+        Code.load_file(file)
+      end
   end
 
   defp get_task(["-" <> _ | _]) do
-    task = "mix #{Mix.Project.config[:default_task]}"
-    Mix.shell.error "** (Mix) Mix only recognizes the flags --help and --version.\n" <>
-                    "You may have wanted to invoke a task instead, such as #{inspect(task)}"
+    task = "mix #{Mix.Project.config()[:default_task]}"
+
+    Mix.shell().error(
+      "** (Mix) Mix only recognizes the flags --help and --version.\n" <>
+        "You may have wanted to invoke a task instead, such as #{inspect(task)}"
+    )
+
     display_usage()
     exit({:shutdown, 1})
   end

      nil
    else
      task = String.to_atom(task)
      Mix.Project.config[:preferred_cli_env][task] || Mix.Task.preferred_cli_env(task)
    end
  end

  defp load_dot_config do
    path = Path.join(Mix.Utils.mix_home, "config.exs")
    if File.regular?(path) do
      Mix.Task.run "loadconfig", [path]
    end
  end

  defp display_version do
    IO.puts :erlang.system_info(:system_version)
    IO.puts "Mix " <> System.build_info[:build]
  end

  defp display_usage do
    Mix.shell.info """

    Usage: mix [task]


  defp change_env(task) do
    if env = preferred_cli_env(task) do
      Mix.env(env)

      if project = Mix.Project.pop() do
        %{name: name, file: file} = project
        Mix.Project.push(name, file)
      end
    end
  end
