Documentation ¶
Index ¶
Constants ¶
View Source
const ( USAGE = "init" SHORT_DESCRIPTION = "Initializes an Edge Application from a starter template" LONG_DESCRIPTION = "Defines primary parameters based on a given name and application preset to start an Edge Application" EXAMPLE = "$ azion init\n$ azion init --help\n$ azion init --name testproject" FLAG_NAME = "The Edge Application's name" FLAG_PRESET = "The Preset's name" FLAG_TEMPLATE = "The Template's name" FLAG_PACKAGE_MANAGE = "Specify the package manager to use (e.g., npm, yarn, pnpm)" FLAG_AUTO = "If sent, the entire flow of the command will be run without interruptions" FLAG_SYNC = "Synchronizes the local azion.json file with remote resources. Use this flag when deploying your project from this command" FLAG_LOCAL = "Runs the entire build and deploy process locally. Use this flag when deploying your project from this command" )
Variables ¶
View Source
var ( EdgeApplicationsOutputErr = errors.New("This output-ctrl option is not available. Read the readme files found in the repository https://github.com/aziontech/azion-template and try again") ErrorVulcanExecute = errors.New("Error executing Bundler: %s") ErrorUpdatingVulcan = errors.New("Failed to update Bundler: %s") ErrorInstallVulcan = errors.New("Failed to install Bundler: %s") ErrorOpeningConfigFile = errors.New("Failed to open the config.json file. The file doesn't exist, is corrupted, or has an invalid JSON format. Verify if the file format is JSON or fix its content according to the JSON format specification at https://www.json.org/json-en.html") ErrorUnmarshalConfigFile = errors.New("Failed to unmarshal the config.json file. Verify if the file format is JSON or fix its content according to the JSON format specification at https://www.json.org/json-en.html") ErrFailedToRunInitCommand = errors.New("Failed to run the init step command. Verify if the command is correct and check the output above for more details. Try the 'azion init' command again or contact Azion's support") ErrorGetAllTags = errors.New("Failed to return all reference tags in a repository. Verify your repository tags and try again. If the error persists, contact Azion support.") ErrorIterateAllTags = errors.New("Failed to iterate over Git reference. Verify the credentials to access your Git repository and try again. If the error persists, contact Azion support.") ErrorOpeningAzionFile = errors.New("Failed to open the azion.json file. The file doesn't exist, is corrupted, or has an invalid JSON format. Verify if the file format is JSON or fix its content according to the JSON format specification at https://www.json.org/json-en.html") ErrorUnmarshalAzionFile = errors.New("Failed to unmarshal the azion.json file. Verify if the file format is JSON or fix its content according to the JSON format specification at https://www.json.org/json-en.html") ErrorNpmNotInstalled = errors.New("Failed to open the NPM package Manager. Visit the website 'https://nodejs.org/en/download/' and follow the instructions to install the Node.js JavaScript runtime environment in your operating system. Node.js installation includes the NPM package manager") ErrorFailedCreatingWorkerDirectory = errors.New("Failed to create the worker directory. The worker's parent directory is read-only and/or isn't accessible. Change the permissions of the parent directory to read and write and/or give access to it") ErrorFailedCreatingAzionDirectory = errors.New("Failed to create the azion directory. The public's parent directory is read-only and/or isn't accessible. Change the permissions of the parent directory to read and write and/or give access to it") ErrorDeps = errors.New("Failed to install project dependencies") ErrorWorkingDir = errors.New("Failed to change current working directory") ErrorReadingGitignore = errors.New("Failed to read your .gitignore file") ErrorWritingGitignore = errors.New("Failed to write to your .gitignore file") ErrorGetProjectInfo = errors.New("Failed to get project preset") )
View Source
var ( EdgeApplicationsInitRunningCmd = "Running init step command:\n\n" EdgeApplicationsInitFlagYes = "Answers all yes/no interactions automatically with yes" EdgeApplicationsInitFlagNo = "Answers all yes/no interactions automatically with no" WebAppInitContentOverridden = "This application was already configured. Do you want to override the previous configuration? <yes | no> (default: no) " WebAppInitCmdSuccess = "Template successfully configured\n" InitGettingTemplates = "\nGetting presets available (Some dependencies may need to be installed)\n" InitGettingVulcan = "\nGetting templates available\n" InitProjectQuestion = "Your application's name: " EdgeApplicationsInitFlagHelp = "Displays more information about the init command" EdgeApplicationsInitSuccessful = "Your application %s was initialized successfully\n" EdgeApplicationsInitNameNotSent = "" /* 170-byte string literal not displayed */ EdgeApplicationsInitNameNotSentSimple = "" /* 128-byte string literal not displayed */ EdgeApplicationsInitNameNotSentStatic = "" /* 128-byte string literal not displayed */ EdgeApplicationsUpdateNamePackageJson = "Updating your package.json name field with the value informed through the --name flag\n" EdgeApplicationsInitTypeNotSent = "" /* 171-byte string literal not displayed */ InitDevCommand = "If you want to start a local development server later, run 'azion dev'\n" InitDeployCommand = "If you want to deploy your application later, run 'azion deploy'\n" InstallDeps = "Installing application dependencies\n" NoHasPackageManager = "No package manager was identified.\n" AskDeploy = "Do you want to deploy your project? (y/N)" AskInstallDepsDev = "Do you want to install project dependencies? This may be required to start local development server (Y/n)" AskInstallDepsDeploy = "Do you want to install project dependencies? This may be required to deploy your project (Y/n)" AskLocalDev = "Do you want to start a local development server? (y/N)" AskGitignore = "" /* 130-byte string literal not displayed */ WrittenGitignore = "Sucessfully written to your .gitignore file\n" ChangeWorkingDir = "Make sure to change to the new working directory before running building or deploying your project\n" )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.