Skip to main content

easifemGO

The easiest and recommended way to use the easifem library is through easifem command line interface application. easifem CLI is a go application, which you can download as given below.

easifem is a CLI (Command Line Interface) for working with easifem platform. It is written in Go language. It contains many subcommands which will help user to integrate EASIFEM with their projects.

The user can perform following actions:

  • Read configuration files for easifem
  • Install/Uninstall/Reinstall components of easifem
  • Run application which uses easifem

Usage:

  easifem [flags]
easifem [command]

Installing easifemGO

First download golang on your system by following the instruction given on the official website of go. After that run the following command.

go install github.com/easifem/easifemGO@latest

Available Commands:

CommandDescriptionExample
cleanRemove build and install files of a pkg.easifem clean base
devDevelopment mode for building easifem components.easifem dev base
installInstall a plugin, several plugins, external dependencies.easifem install base
lintLinting easifem project while developing the easifem components.easifem lint main.F90
runBuild and run executable file.easifem run main.F90
testBuild and run executable file.easifem test main.F90

Global flags

FlagShort flagDescription
--config-cConfiguration file name with extension (e.g. easifem.toml)
--envCurrent environment name
--no-downloadDo not download packages
--no-runOnly create the binary file and do not run it.
--quiet-qRun commands in quiet mode.
--help-hHelp for easifem

Use easifem [command] --help for more information about a command.

Getting the configuration files

To configure easifem and to get snippets it is better to clone the git repository from github.com/easifem/config to $HOME/.config/easifem by using following.

git clone https://github.com/easifem/config.git  ~/.config/easifem

You can read more more about the configuration files here.

Further reading