(m Migration)
| 150 | } |
| 151 | |
| 152 | func migrationHintText(m Migration) string { |
| 153 | switch m.Tag { |
| 154 | case MigrationTagRemoved: |
| 155 | return m.AlternativePattern |
| 156 | case MigrationTagRenamedSameBehaviour: |
| 157 | return fmt.Sprintf("Renamed to %s.", m.NewName) |
| 158 | case MigrationTagRenamedAndNeedsOptions: |
| 159 | return fmt.Sprintf("Renamed to %s. %s", m.NewName, m.OptionsInstructions) |
| 160 | default: |
| 161 | return "" |
| 162 | } |
| 163 | } |
no outgoing calls
no test coverage detected