Page MenuHomeWrite.as

Support shorter config process
Closed, ResolvedPublic

Description

Overview

We should be able to specify which sections of the config process we want to interact with when running wf with the --config flag.

Implementation

By default, the --config command should still include the full process like we do today.

I'm thinking we add a new flag --sections that can contain a space-separated list of sections to include. E.g.

writefreely --config --sections='server db app'

These would be the three valid values:

  • server
  • db
  • app

We should parse this out in cmd/writefreely/main.go and send the information to the config.Configure() call as new parameters.

For T600, we would then run this in our setup script:

writefreely --config --sections='app'