<commit_before># Flow::Cli

Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/flow/cli`. To experiment with that code, run `bin/console` for an interactive prompt.

TODO: Delete this and the text above, and describe your gem

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'flow-cli'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install flow-cli

## Usage

flow-cli --help # help 
flow-cli remote --help# flow ci operation help.

## Example

### flow-cli login

```
➜  flow-cli git:(master) ✗ flow-cli remote login
email? <EMAIL>
password? ••••••••
you info saved to ~/.flow_cli_config.yml
login success...
```

### Choose a project 

```
➜  flow-cli git:(master) ✗ flow-cli remote project_init
Choose your project? FIRHQ/flow-cli
project_id = 591a8ff86c112a739a1abefe, flow_id = 591a9003ef2cb037c03c0c94. saved this info...
```

### fetch latest jobs

```
  flow-cli git:(master) ✗ flow-cli remote fetch_latest_jobs<commit_msg>fix readme<commit_after># Flow::Cli

Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/flow/cli`. To experiment with that code, run `bin/console` for an interactive prompt.

TODO: Delete this and the text above, and describe your gem

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'flow-cli'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install flow-cli

## Usage

flow-cli --help # help 
flow-cli remote --help# flow ci operation help.

## Example

### Build flow yaml 

```
➜  flowclibasic git:(master) ✗ flow-cli build_yaml_file

export_method?  development
less log? Yes
[17:54:50]: $ xcodebuild -list -project ./flowclibasic.xcodeproj
[17:54:52]: $ xcodebuild -showBuildSettings -scheme flowclibasic -project ./flowclibasic.xcodeproj
---
env:
- FLOW_YAML_FROM=flow-cli
flows:
- name: default_flow_by_cli
  language: objc
  version: Xcode8
  env:
  trigger:
    push:
    - develop
    - master
  steps:
  - name: init
    plugin:
      name: objc_init
  - name: git
    plugin:
      name: git
  - name: install
    plugin:
      name: objc_init
  - name: build
    scripts:
    - fastlane gym build --project ./flowclibasic.xcodeproj --scheme flowclibasic
      --output_name flowclibasic --clean false --export_method development --silent

```

### show build script

```
➜  flowclibasic git:(master) ✗ flow-cli show_build_script
This is the build script in yaml

******************************
fastlane gym build --project ./flowclibasic.xcodeproj --scheme flowclibasic --output_name flowclibasic --clean false --export_method development --silent
******************************
```


### Flow-cli login

```
➜  flow-cli git:(master) ✗ flow-cli remote login
email? <EMAIL>
password? ••••••••
you info saved to ~/.flow_cli_config.yml
login success...
```

### Choose a project 

```
➜  flow-cli git:(master) ✗ flow-cli remote project_init
Choose your project? FIRHQ/flow-cli
project_id = 591a8ff86c112a739a1abefe, flow_id = 591a9003ef2cb037c03c0c94. saved this info...
```

### Fetch latest jobs

```
  flow-cli git:(master) ✗ flow-cli remote fetch_latest_jobs
{'fraction_non_alphanumeric': 0.12940824865511058, 'fraction_numerical': 0.021219366407650927, 'mean_word_length': 3.668061366806137, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5148731', 'n_tokens_mistral': 1224, 'n_tokens_neox': 1115, 'n_words': 389}