2023-04-09 08:19:40 -04:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
var prog_help = `Scaffold requires 2 parameters
|
|
|
|
|
1) a project type
|
|
|
|
|
and
|
|
|
|
|
2) a name for your new project
|
|
|
|
|
|
|
|
|
|
Usage examples:
|
|
|
|
|
|
|
|
|
|
scaffold go NewGoProject
|
|
|
|
|
scaffold py aPythonProject
|
|
|
|
|
`
|
2023-04-09 16:51:19 -04:00
|
|
|
|
2023-04-10 15:54:41 -04:00
|
|
|
// var gi_template = `%s
|
|
|
|
|
// .env
|
|
|
|
|
// *.env
|
|
|
|
|
// .env.toml
|
|
|
|
|
|
|
|
|
|
// cfg/*.toml
|
|
|
|
|
// cfg/.env
|
|
|
|
|
// cfg/*.env
|
|
|
|
|
// cfg/.env*
|
|
|
|
|
// *.toml
|
|
|
|
|
|
|
|
|
|
// build/
|
|
|
|
|
// buildTime.txt
|
|
|
|
|
// buildVersion.txt
|
|
|
|
|
// `
|
|
|
|
|
|
|
|
|
|
// var gi_py_template = `%s
|
|
|
|
|
// .env
|
|
|
|
|
// *.env
|
|
|
|
|
// .env.toml
|
|
|
|
|
|
|
|
|
|
// cfg/*.toml
|
|
|
|
|
// cfg/.env
|
|
|
|
|
// cfg/*.env
|
|
|
|
|
// cfg/.env*
|
|
|
|
|
// *.toml
|
|
|
|
|
|
|
|
|
|
// bin/
|
|
|
|
|
// `
|
2023-04-10 18:53:24 -04:00
|
|
|
|
|
|
|
|
// var cfg_content = `# New Go Project configuration file
|
|
|
|
|
|
|
|
|
|
// # Format: TOML - see https://toml.io for details
|
|
|
|
|
|
|
|
|
|
// # Go specific
|
|
|
|
|
// # Go module path is of the form basePath/projectName
|
|
|
|
|
// # must be addressable if you are going to publish
|
|
|
|
|
// module_basepath = "officallygood.com"
|
|
|
|
|
|
|
|
|
|
// # where to put new project directories
|
|
|
|
|
// # within the user's home directory
|
|
|
|
|
// projects_basedir = "devel/GoMyApps"
|
|
|
|
|
// #def_project_name = "new-go-project"
|
|
|
|
|
|
|
|
|
|
// # Must be string, will be parsed to correct type
|
|
|
|
|
// # Remember perms are in octal
|
|
|
|
|
// project_dir_permissions = "0700"
|
|
|
|
|
// file_permissions = "0660"
|
|
|
|
|
|
|
|
|
|
// # Git
|
|
|
|
|
// setup_git = true
|
|
|
|
|
|
|
|
|
|
// # Do you have a remote location?
|
|
|
|
|
// # Do you have autologins setup correctly with ssh keys?
|
|
|
|
|
// # Using your .ssh/config file might be helpful
|
|
|
|
|
|
|
|
|
|
// # setup remote repo?
|
|
|
|
|
// create_remote_repo = false
|
|
|
|
|
|
|
|
|
|
// # remote repo user@location
|
|
|
|
|
// remote_user = "user@server"
|
|
|
|
|
|
|
|
|
|
// # remote repo base dir
|
|
|
|
|
// # relative to remote user home dir
|
|
|
|
|
// # eg unix/linux server
|
|
|
|
|
// # for user@server:/home/user/git -- absolute path
|
|
|
|
|
// user@server:git -- relative to home dir
|
|
|
|
|
// # eg windows server
|
|
|
|
|
// # ???
|
|
|
|
|
|
|
|
|
|
// ############################
|
|
|
|
|
// # remote location MUST already exist on remote server
|
|
|
|
|
// ############################
|
|
|
|
|
// remote_location = "git"
|
|
|
|
|
|
|
|
|
|
// # default remote short name
|
|
|
|
|
// remote_shortname = "origin"
|
|
|
|
|
//`
|
|
|
|
|
|
|
|
|
|
var cfg_content = `# Scaffold program configuration
|
|
|
|
|
|
|
|
|
|
# Format: TOML - see https://toml.io for details
|
|
|
|
|
|
|
|
|
|
# Too funny - this config file doesn't seem to be needed ;-)
|
|
|
|
|
# let's keep it for future use -- very silly
|
|
|
|
|
testkey = "test value"`
|