1. 16 Sep, 2021 2 commits
  2. 17 Aug, 2021 1 commit
    • Addshore's avatar
      Format files consistently · 7f754c1d
      Addshore authored
      My IDE wants to do this on save now...
      Change-Id: I6153b0939095cb7d2cd81cab634e7243de01fa49
  3. 10 Aug, 2021 1 commit
  4. 18 May, 2021 1 commit
    • Addshore's avatar
      mwdd: Wizard to guide you through env setup · 7243f0ed
      Addshore authored and Addshore's avatar Addshore committed
      This includes:
       - Prompting the user to pick a PORT for the mwdd env
       - Prompting the user to pick a MW directory if not set
       - Clone of MediaWiki and optionally Vector
       - Ability to do a shallow clone for speed
       - Ability to clone from Github and switch to Gerrit
      This also leaves some TODOs around the place:
       - Allow the user to choose if the remotes end up on https or ssh
       - Allow cloning async for more speed
       - Allow the user to get more skins or extensions?
       - Auto detection of MW directory
       - Check if git is even installed
      And leaves 1 clear next step to make initial setup quite
      slick, this being do an initial composer install if
      MW determines that it needs it (will be done in a followup)
      Change-Id: Id58e45c26fed77a06226b081f6248d5f27a234b6
  5. 19 Mar, 2021 1 commit
    • Addshore's avatar
      Make sure env set can be used before the file exists · fb5a562d
      Addshore authored
      We wan't an `env set` command to create the .env file, and
      directories on the way to the file if needed.
      Otherwise users can try to set things before running any other
      commands and it won't work.
      I came across this while writing some CI test stuff and wanting
      to set the dir of mediawiki.
      I would set, then run `mwdd create`, but the set would not have
      dont anything!
      Change-Id: I4d6cd57ced68993e38e2e506a007bc34f2371585
  6. 07 Jan, 2021 1 commit
    • Addshore's avatar
      Refactor internal env code to a type · 1721d16c
      Addshore authored and Addshore's avatar Addshore committed
      This is further prep in the direction of
      that is useful in any case.
      The internal/env package now exposes a DotFile type
      which has the various methods attached for interacting
      with a .env file.
      The .env file is currently tied to the MediaWiki core directory
      so the commands have a check added for the current location.
      This is already done for the docker commands, but not here yet.
      Use of the type should make using .env files in different locations
      easier in the future.
      Change-Id: I3bf2079ff4be2f8589d17443639d5e4e03dadf12
  7. 22 Jul, 2020 2 commits
    • Addshore's avatar
      Move our expanding app code into /internal · 67c08d13
      Addshore authored
      Per https://github.com/golang-standards/project-layout
      this is probably where this code should live for now.
      Quote: Private application and library code.
        This is the code you don't want others importing in
        their applications or libraries.
      Change-Id: I63d0b9e4b0c1d856b47e4397b6a97ad1b3577ea2
    • Addshore's avatar
      Add 'docker env' command for interacting with .env file · faede609
      Addshore authored
      This means people have to alter files less and things canbe scripted more.
      This code was altered from PS1 of
      I7b8d651d656f7f254506df0900d84a173f27880a which maintained the
      .env file in a user config dir instead of within the mediawiki core
      However for now a minimal change is to just alter this file in place
      within the mw core dir.
      Change-Id: I7b8d651d656f7f254506df0900d84a173f27880a