github.com/rendon/cf@v0.0.0-20220806233241-5cb5d3939c03/README.md (about) 1 # cf 2 Codeforces command line client. 3 4 The goal of this tool is to make your life as a problem solver a little bit easier, you focus on solving the main problems, cf takes care of setting your environment up. 5 6 With cf you can easily download test cases, generate boilerplate code for various programming languages, automate tests, etc. 7 8 ## Usage examples 9 10 ### Download test cases for a single problem: 11 12 $ cf parse http://codeforces.com/contest/459/problem/C 13 $ tree -a 14 . 15 ├── .in1.txt 16 ├── .in2.txt 17 ├── .out1.txt 18 ├── .out2.txt 19 └── .settings.yml 20 21 0 directories, 5 files 22 23 ### Download test cases for all problems in a contest: 24 25 $ cf setup 459 26 Problem A is ready! 27 Problem B is ready! 28 Problem C is ready! 29 Problem D is ready! 30 Problem E is ready! 31 32 $ tree -a 33 . 34 └── CodeforcesRound261Div.2 35 ├── A 36 │ ├── .in1.txt 37 │ ├── ... 38 │ └── .settings.yml 39 ├── B 40 │ ├── .in1.txt 41 │ ├── ... 42 │ └── .settings.yml 43 ├── C 44 │ ├── .in1.txt 45 │ ├── ... 46 │ └── .settings.yml 47 ├── D 48 │ ├── .in1.txt 49 │ ├── ... 50 │ └── .settings.yml 51 └── E 52 ├── .in1.txt 53 ├── ... 54 └── .settings.yml 55 56 6 directories, 33 files 57 58 ### Introducing the cf global configuration file 59 cf uses the `~/.cf.yml` file to store global settings, e.g.: 60 61 --- 62 template.cpp: /home/user/templates/template.cpp 63 template.go: /home/user/templates/template.go 64 65 ### Generate sample solution: 66 67 $ cf gen main.go 68 $ cat main.go 69 package main 70 71 import () 72 73 func main() { 74 } 75 76 If you specify a valid template file in your `~/.cf.yml`, the sample solution will be a copy of that template.