View Source SquareCloud.Config (SquareCloud v0.1.0)

Application config

Link to this section Summary

Functions

Generate config file

Link to this section Types

@type config_opts() :: [
  display_name: String.t(),
  memory: integer(),
  description: String.t() | nil,
  avatar: String.t() | nil
]

Link to this section Functions

Link to this function

generate(atom, opts)

View Source (since 0.1.0)
@spec generate(:bot, config_opts()) :: any()

Generate config file

Example:

SquareCloud.Config.generate(:bot, name: "Test", memory: 128)