Compare commits

...

2 commits

2 changed files with 3 additions and 0 deletions

View file

@ -28,6 +28,8 @@ Here are some of the common commands you may want to try right off the bat (asid
export MAKESHIFT_HOST=localhost
export MAKESHIFT_PATH=/test
export MAKESHIFT_ROOT=./test
export MAKESHIFT_LOG_FILE=logs/makeshift.log
export MAKESHIFT_LOG_LEVEL=debug
```
Start the server. The `--init` flag with create the default files and directory to get started at the `--root` path.

View file

@ -33,6 +33,7 @@ var rootCmd = cobra.Command{
Run: func(cmd *cobra.Command, args []string) {
// try and set flags using env vars
setenv(cmd, "log-file", "MAKESHIFT_LOG_FILE")
setenv(cmd, "log-level", "MAKESHIFT_LOG_LEVEL")
if len(args) == 0 {
err := cmd.Help()
if err != nil {