Lines Matching full:name
36 def create_project(target_path, name): argument
39 os.rename(os.path.join(main_folder, 'main.c'), os.path.join(main_folder, '.'.join((name, 'c'))))
40 replace_in_file(os.path.join(main_folder, 'CMakeLists.txt'), 'main', name)
41 replace_in_file(os.path.join(target_path, 'CMakeLists.txt'), 'main', name)
50 def create_component(target_path, name): argument
52 os.rename(os.path.join(target_path, 'main.c'), os.path.join(target_path, '.'.join((name, 'c'))))
54 os.path.join(target_path, 'include', '.'.join((name, 'h'))))
56 replace_in_file(os.path.join(target_path, '.'.join((name, 'c'))), 'main', name)
57 replace_in_file(os.path.join(target_path, 'CMakeLists.txt'), 'main', name)
62 target_path = action_args.get('path') or os.path.join(project_path, action_args['name'])
67 func_action_map[action](target_path, action_args['name'])
79 'help': ('Create a new project with the name NAME specified as argument. '
92 'arguments': [{'names': ['name']}],
105 'help': ('Create a new component with the name NAME specified as argument. '
117 'arguments': [{'names': ['name']}],