The full developer manual of the productivity application RunFlow
Tags: productivity, frontend, backend, development
Published: 2024-04-15 12:56:25

Earlier we introduced the [basic](https://github.com/myrestop/myblog/blob/master/runflow_basic_point.md) and [advanced](https://github.com/myrestop/myblog/blob/master/runflow_advanced_point.md) functions of RunFlow, this article is a developer manual specially prepared for developers. Let's take a look at the practical functions.

### Executing Commands

type `>` to enter the focused mode of command (supports recording history to make it faster to execute daily used commands):

![exec_command](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8lyfll2jsbsuov0du5p2.gif)

### Calculator

base conversion (binary, octal and hexadecimal start with `0b`, `0`, `0x` respectively)

![calc_binary](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8lxm4qaoo39suv2aj4lo.gif)

bit operations (and `&`, or `|`, XOR `^`, right shift `>>`, left shift `<<`)

![calc_bit](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nma2yii8xyvrc7b26bgm.gif)

### Datetime Calculator

current timestamp (add a `.` parameter to stop the real time, ie: `now.`)

![calc_now](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qsnx81negsip1sz6n4hz.gif)

timestamp to datetime (year, month, day, week, hour, minute, second millisecond are represented by `y`, `m`, `d`, `w`, `h`, `min`, `s`, `ms` respectively)

![calc_timestamp](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mi3mv5yqh15vrmfekcan.gif)

offset calculation (`<` offset to the past, `>` offset to the future, examples: offset to the end of this week `now>w`, offset to the beginning of this month `now<m`, offset to the end of a certain day `2024-05-01>d`)

![calc_date_offset](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q7kndar3tb36ki37pj2e.gif)

addition and subtraction for datetime calculation (examples: `100y+500h+999ms`、`2024-05-01+999min-3w`)

![calc_date](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9b03pgw4p3vk95wcfh99.gif)

calculate the difference in days between two date (the datetime format at both ends must be consistent, examples: `2024-07-01-2024-01-01`、`20241231-20231231`)

![calc_day_between](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mnxqwwmgyo7cjxwk81h3.gif)

> Supported formats for datetime: `yyyymmdd`、`yyyy-mm-dd`、`yyyyMMddHHmmss`、`yyyyMMdd HHmmss`、`yyyyMMddHHmmssSSS`、`yyyyMMdd HHmmssSSS`、`yyyy-MM-dd HH:mm:ss`、`yyyy-MM-dd HH:mm:ss.SSS`.

### Random Generator

Examples: `random abc 16` random 16 lowercase and uppercase letters, `random abc upper 16` random 16 uppercase letters, `random abc lower 16` random 16 lowercase letters, `random int 100,999` a random number from 100 to 999, `random color` a random color.

![random_generator](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cbpjhxxfbm3yy9wapytb.gif)

### Developer Tools

We also provided a developer tools plugin, that include functions: coding naming style conversion, color parsing, CRON expression parsing, Base32 and Base64 encoding and decoding, Sha256 and MD5 encryption, UUID generator, letter uppercase and lowercase conversion, etc. [The Plugin Documentation](https://myrest.top/store/plugin?id=top.myrest.myflow.developer).

![plugin_developer_tools](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bjm3x6jtpjhbgcpwxq0p.gif)

### Thanks

This article introduces some commonly used functions by developers. If you wish to develop plugins, welcome to read our [plugin development guide](https://myrest.top/guide/myflow/plugin). If you are a Java developer, we have also prepared a Java developer manual, welcome to read it.