mirror of
https://github.com/Ladebeze66/projetcbaollm.git
synced 2025-12-16 21:27:53 +01:00
22 lines
781 B
Python
22 lines
781 B
Python
def get_ticket_codes():
|
|
"""Demande et retourne une liste de codes de tickets"""
|
|
codes_input = input("\nEntrez les codes des tickets (séparés par des virgules): ")
|
|
if not codes_input:
|
|
print("Aucun code de ticket fourni.")
|
|
return []
|
|
|
|
codes = [code.strip() for code in codes_input.split(',')]
|
|
return codes
|
|
|
|
def get_field_name():
|
|
"""Demande et retourne un nom de champ"""
|
|
field_name = input("\nEntrez le nom du champ: ")
|
|
if not field_name:
|
|
print("Aucun nom de champ fourni.")
|
|
return None
|
|
return field_name
|
|
|
|
def confirm_action(prompt="Confirmez-vous cette action? (o/n): "):
|
|
"""Demande une confirmation à l'utilisateur"""
|
|
response = input(prompt).lower()
|
|
return response in ('o', 'oui', 'y', 'yes') |