-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.go
73 lines (57 loc) · 2.04 KB
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package main
import (
"log"
"os"
)
func getDefaultConfig() {
_, err := os.ReadFile("renpy-graphviz.config")
if err != nil {
log.Println("Creating default config...")
b := []byte(defaultConfig())
err := os.WriteFile("renpy-graphviz.config", b, 0o644)
if err != nil {
log.Fatal("Couldn't create default config file. Please create a renpy-graphviz.config file manually.")
}
}
}
func defaultConfig() string {
return `### RENPY-GRAPHVIZ TOOL CONFIGURATION ###
# Select what you want to show and what you want to hide
# Hiding everything isn't always very useful
# Showing everything can make the graph pretty ugly
# Just change true/false to false/true and do not touch anything else
# If there is any problem, or if you want to restore defaults
# just delete this file and restart the program
[config]
### You can edit ↓ below ↓
# Show the nodes with no neighbors or not?
atoms = false # default: false
# Try to display menu choices on the edges
edges = true # default: true
# Open the .png created directly or not?
open = true # default: true
# Shows screens or not (might be relevant to your project)
screens = true # default: true
# Shows nested screens (keyword 'use' inside screens) or not?
nested-screens = true # default: true
# Output something to the stdout, or not?
silent = false # default: false
# Debug mode
debug = false # default: false
# Regex for skipping files
skip-files = "" # default: ""
### You can edit ↑ above ↑
### HOW TO USE THE PROGRAM? ###
# If you know how to use the command line, just type 'renpy-graphviz'.
# You can get help with 'renpy-graphviz -h'
# If you don't, just place the .exe on your game folder and launch the executable
### Advanced usage ###
# This customisation isn't enough and you want more precise control?
# Use TAGS https://github.com/EwenQuim/renpy-graphviz#tags
# Example:
# label my_awesome_game_chapter_1: # renpy-graphviz: TITLE
# This will make a pretty bubble for this label!
# You can also override the file for 1 command by using CLI flags
# Check renpy-graphviz -h for more information
`
}