PHP CLI Command for changed files check ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tothewine
    Active Community Member
    • Jan 2018
    • 392

    PHP CLI Command for changed files check ?

    I would like to suggest an useful feature for developers. Sometimes not everything can be customized in the /custom folder. So I suggest to add a CLI command to list all the customized files outside of /custom folder so that they can be backupped and merged with their updated versions.

    For example running php command.php list_changes would download the setup file for current version and list all files that are not identical to their zipped counterpart.

    Maybe this could be made part of the update process and halt it if customizations would be overwritten.
  • yuri
    Member
    • Mar 2014
    • 8669

    #2
    I think that we don't need it. You can add some specific comment to all your modifications and use grep.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment


    • tothewine
      tothewine commented
      Editing a comment
      Yeah that is how I actually do but sometimes one could forget to 'sign' the edits...
  • tothewine
    Active Community Member
    • Jan 2018
    • 392

    #3
    By the way, I was not able to add new commands in /custom is it customizable? If not, it needs to be.

    Comment


    • yuri
      yuri commented
      Editing a comment
      Look into application/Espo/Core/Console/. There is a way.

    • tothewine
      tothewine commented
      Editing a comment
      Thanks! I found it. But, isn't adding files to /custom and then adding commands also to metadata totally redundant?
      This and many other customization could be inferred from file system (and inheritance) and cached during rebuild.
Working...