imagrc.toml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. # This is a example configuration file for the imag suite.
  2. # It is written in TOML
  3. #
  4. # Configuration options for the user interface
  5. #
  6. [ui]
  7. #
  8. # Configuration options for the commandline user interface
  9. #
  10. [ui.cli]
  11. # History file path for readline. Will be created by imag if it does not exist.
  12. readline_history_file = "/tmp/readline.history"
  13. # Number of lines to safe in the history file
  14. readline_history_size = 100
  15. # Ignore duplicated lines
  16. readline_history_ignore_dups = true
  17. # Tell if lines which begin with a space character are saved or not in the
  18. # history list.
  19. readline_history_ignore_space = true
  20. # The prompt string to use
  21. readline_prompt = ">> "
  22. [store]
  23. # Set to false if you do not want imag to create the directory where the store
  24. # lives implicitely
  25. implicit-create = false
  26. # Hooks which get executed right before the Store is closed.
  27. # They get the store path as StoreId passed, so they can alter the complete
  28. # store, so these hooks should be chosen carefully.
  29. store-unload-hook-aspects = [ "debug", "vcs" ]
  30. pre-create-hook-aspects = [ "debug", "vcs" ]
  31. post-create-hook-aspects = [ "debug", "vcs" ]
  32. pre-move-hook-aspects = [ "debug" ]
  33. post-move-hook-aspects = [ "debug" ]
  34. pre-retrieve-hook-aspects = [ "debug", "vcs" ]
  35. post-retrieve-hook-aspects = [ "debug", "vcs" ]
  36. pre-update-hook-aspects = [ "debug", "vcs" ]
  37. post-update-hook-aspects = [ "debug", "vcs" ]
  38. pre-delete-hook-aspects = [ "debug", "vcs" ]
  39. post-delete-hook-aspects = [ "debug", "vcs" ]
  40. [store.aspects.debug]
  41. parallel = false
  42. mutable_hooks = true
  43. [store.aspects.vcs]
  44. parallel = false
  45. mutable_hooks = false
  46. [store.hooks.stdhook_debug]
  47. aspect = "debug"
  48. [store.hooks.stdhook_git_update]
  49. aspect = "vcs"
  50. # set to false to disable
  51. enabled = true
  52. # Fail if the repository cannot be opened. If this is set to `false`, the error
  53. # will be printed, but will not abort the store operation. `true` will print the
  54. # error and abort the store action.
  55. abort_on_repo_init_failure = true
  56. # Ensure to be on this branche before doing anything.
  57. ensure_branch = "refs/heads/master"
  58. # Try to checkout the ensure_branch if it isn't checked out
  59. try_checkout_ensure_branch = true
  60. # Commit configuration
  61. [store.hooks.stdhook_git_update.commit]
  62. # Enable committing here. If not enabled, the "stdhook_git_storeunload" hook
  63. # will commit all changes in one commit when the store is closed.
  64. enabled = false
  65. # Whether to do the commit interactively
  66. interactive = false
  67. # Set to true to use the $EDITOR for the commit, to false to do on commandline
  68. # When committing without editor, only a single line is allowed as commit
  69. # message
  70. interactive_editor = false
  71. # Commit message if the commit is not interactive
  72. message = "Update"
  73. [store.hooks.stdhook_git_delete]
  74. aspect = "vcs"
  75. # set to false to disable
  76. enabled = true
  77. # Fail if the repository cannot be opened. If this is set to `false`, the error
  78. # will be printed, but will not abort the store operation. `true` will print the
  79. # error and abort the store action.
  80. abort_on_repo_init_failure = true
  81. # Ensure to be on this branche before doing anything.
  82. ensure_branch = "refs/heads/master"
  83. # Try to checkout the ensure_branch if it isn't checked out
  84. try_checkout_ensure_branch = true
  85. # Commit configuration
  86. [store.hooks.stdhook_git_delete.commit]
  87. # Enable committing here. If not enabled, the "stdhook_git_storeunload" hook
  88. # will commit all changes in one commit when the store is closed.
  89. enabled = false
  90. # Whether to do the commit interactively
  91. interactive = false
  92. # Set to true to use the $EDITOR for the commit, to false to do on commandline
  93. # When committing without editor, only a single line is allowed as commit
  94. # message
  95. interactive_editor = false
  96. # Commit message if the commit is not interactive
  97. message = "Deleted"
  98. [store.hooks.stdhook_git_storeunload]
  99. aspect = "vcs"
  100. # set to false to disable
  101. enabled = true
  102. # Fail if the repository cannot be opened. If this is set to `false`, the error
  103. # will be printed, but will not abort the store operation. `true` will print the
  104. # error and abort the store action.
  105. abort_on_repo_init_failure = true
  106. # Ensure to be on this branche before doing anything.
  107. ensure_branch = "refs/heads/master"
  108. # Try to checkout the ensure_branch if it isn't checked out
  109. try_checkout_ensure_branch = true
  110. # Commit configuration
  111. [store.hooks.stdhook_git_storeunload.commit]
  112. # Enable on-unload-committing, causing the store-unload hook to commit the
  113. # changes to the store. This has no effect if the changes were already committed
  114. # by the other git hooks.
  115. enabled = true
  116. # Do a git-add on all files that are not in the index yet, before committing.
  117. # This must be turned on, as we do not support adding with "Update" hooks and
  118. # only committing with the "Drop" hook, yet.
  119. # So, effectively, disabling this will disable committing.
  120. #
  121. # If not set: false
  122. add_wt_changes = true
  123. # Whether to do the commit interactively
  124. interactive = false
  125. # Set to true to use the $EDITOR for the commit, to false to do on commandline
  126. # When committing without editor, only a single line is allowed as commit
  127. # message
  128. interactive_editor = false
  129. # Commit message if the commit is not interactive
  130. message = "Commit on drop"